Module declaration is being mixed with pragmas #275

Closed
opened 2020-01-21 12:18:00 +01:00 by Munksgaard · 4 comments
Munksgaard commented 2020-01-21 12:18:00 +01:00 (Migrated from github.com)

Using brittany master on https://hexagoxel.de/brittany/ the following code

{-# LANGUAGE QuasiQuotes #-}

module Main where

main :: IO ()
main = putStrLn "Hello world"

is turned into

{-# LANGUAGE QuasiQuotes #-}module Main where

main :: IO ()
main = putStrLn "Hello world"

If I use Brittany 0.12.1.1 it seems to work, although the mangled version above is turned into

{-# LANGUAGE QuasiQuotes #-}
                            module Main where

main :: IO ()
main = putStrLn "Hello world"

which is still strange, but better :-)

Thank you for your work on Brittany!

Using brittany master on https://hexagoxel.de/brittany/ the following code ``` {-# LANGUAGE QuasiQuotes #-} module Main where main :: IO () main = putStrLn "Hello world" ``` is turned into ``` {-# LANGUAGE QuasiQuotes #-}module Main where main :: IO () main = putStrLn "Hello world" ``` If I use Brittany 0.12.1.1 it seems to work, although the mangled version above is turned into ``` {-# LANGUAGE QuasiQuotes #-} module Main where main :: IO () main = putStrLn "Hello world" ``` which is still strange, but better :-) Thank you for your work on Brittany!
lspitzner commented 2020-01-23 01:26:21 +01:00 (Migrated from github.com)

Thanks for the report. This is fixed on master; I have triggered a deploy of current master to the web interface. Will take a few minutes. Unless something breaks about my scripting :p

Thanks for the report. This is fixed on master; I have triggered a deploy of current master to the web interface. Will take a few minutes. Unless something breaks about my scripting :p
Munksgaard commented 2020-01-23 08:40:11 +01:00 (Migrated from github.com)

Thanks for the quick response! However, I still seem to be getting the same formatting issue on https://hexagoxel.de/brittany/, but perhaps that is only updated once in a while?

Thanks for the quick response! However, I still seem to be getting the same formatting issue on https://hexagoxel.de/brittany/, but perhaps that is only updated once in a while?
lspitzner commented 2020-01-23 10:45:16 +01:00 (Migrated from github.com)

whoops, yeah, I had messed up and it only deployed for GHCs 8.0,8.2,8.4. Fixed; According to my tests it is working properly now.

whoops, yeah, I had messed up and it only deployed for GHCs 8.0,8.2,8.4. Fixed; According to my tests it is working properly now.
Munksgaard commented 2020-01-23 10:50:26 +01:00 (Migrated from github.com)

Great, thank you!

Great, thank you!
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hexagoxel/brittany#275
There is no content yet.