Closed Avi-D-coder closed 4 years ago
This is related to #437 & #438.
$ echo 'idString = id @String' | ormolu -o TypeApplications
The following GHC options were not recognized: TypeApplications
Removing src/Ormolu/Parser.hs:208 gets rid of the error message, but ignores TypeApplications. Output: idString = id@String
src/Ormolu/Parser.hs:208
TypeApplications
idString = id@String
case NE.nonEmpty leftovers of Nothing -> return () Just unrecognizedOpts -> throwIO (OrmoluUnrecognizedOpts (unLoc <$> unrecognizedOpts))
As you seem to have discovered by now, the problem is that GHC options for language extensions begin with the -X prefix, which is how you should provide them.
-X
This is related to #437 & #438.
Removing
src/Ormolu/Parser.hs:208
gets rid of the error message, but ignoresTypeApplications
. Output:idString = id@String