Skip to content

Can't handle multi-line pragmas #651

@toku-sa-n

Description

@toku-sa-n

Problem

Description of problem here.

  • I checked the issue tracker for existing issues about this problem.
  • I'm using the latest version of hindent.

Input haskell

{-# LANGUAGE CPP #-}
module Main where
#     define FOO 3+ \
        5

main=undefined

Expected output haskell

{-# LANGUAGE CPP #-}

module Main where

#     define FOO 3+ \
        5

main = undefined

At least, HIndent should not panic.

Actual output haskell: lexical error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions