-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Ormolu will drop the splice (or quote) import informations when the code use ExplicitLevelImports.
To Reproduce
Test.hs:
{-# LANGUAGE ExplicitLevelImports #-}
import splice PyF (fmt)
import PyFormolu Test.hs:
Test.hs
@@ -1,3 +1,4 @@
{-# LANGUAGE ExplicitLevelImports #-}
- import splice PyF (fmt)
+
import PyF
+ import PyF (fmt)
AST of input and AST of formatted code differ.
at Test.hs:2:1-23
Please, consider reporting the bug.
To format anyway, use --unsafe.See how it dropped the splice
Expected behavior
Ormolu should correctly handle splice and quote
Environment
- OS name + version:
- Version of the code: Ormolu built using Fix build on GHC 9.14 #1190
Additional context
Add any other context about the problem here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working