You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Looks like ormolu does not support literate Haskell, see details.
Describe the solution you'd like
Able to format literate Haskell.
Describe alternatives you've considered
N/A
Additional context
I'm new to Haskell so not familiar with the tooling. I guess there's certain reasons we do not support literate Haskell? If so, are there other tools can be used?
The text was updated successfully, but these errors were encountered:
Alecton4
changed the title
Support for literal Haskell
Support for literate Haskell
Dec 18, 2023
Thanks for the suggestion! I think implementing support for Literate Haskell should be feasible (ie as supported by the unlit program shipped with GHC), such that eg
# A Literate Haskell File
Some imports
> importB
> importA
Very interesting code:
> dataA=B
is formatted to
# A Literate Haskell File
Some imports
> importA
> importB
Very interesting code:
> dataA=B
@amesgen Yes! Formatting the code parts in literate Haskell is exactly what I mean, sorry for not clearly specifying it. BTW, may I ask the reason why this snippet
Is your feature request related to a problem? Please describe.
Looks like ormolu does not support literate Haskell, see details.
Describe the solution you'd like
Able to format literate Haskell.
Describe alternatives you've considered
N/A
Additional context
I'm new to Haskell so not familiar with the tooling. I guess there's certain reasons we do not support literate Haskell? If so, are there other tools can be used?
The text was updated successfully, but these errors were encountered: