on master help sign in
Fix breakage by a65be52b36300dcf7f17273c303903b795581037

Explicitly enabling Haskell2010 instead of GHC's default mode enables a stricter layout rule...

commitb6dc6f80f16724bfcdc33c817ae9e6eed8981c5d authorHerbert Valerio Riedel <hvr@gnu.org> dateTue 26 Jan 2016, 18:32 (11 years ago) parent72cb6ac
1 file changed+5−5
Data/Aeson/TH.hs+5−5
Data/Aeson/TH.hs+5−5
@@ -870,11 +870,11 @@ parseArgs tName opts (RecC conName ts) (Left (_, obj)) =
870870parseArgs tName opts (RecC conName ts) (Right valName) = case (unwrapUnaryRecords opts,ts) of
871871 (True,[(_,st,ty)])-> parseArgs tName opts (NormalC conName [(st,ty)]) (Right valName)
872872 _ -> do
873− obj <- newName "recObj"
874− caseE (varE valName)
875− [ match (conP 'Object [varP obj]) (normalB $ parseRecord opts tName conName ts obj) []
876− , matchFailed tName conName "Object"
877− ]
873+ obj <- newName "recObj"
874+ caseE (varE valName)
875+ [ match (conP 'Object [varP obj]) (normalB $ parseRecord opts tName conName ts obj) []
876+ , matchFailed tName conName "Object"
877+ ]
878878
879879-- Infix constructors. Apart from syntax these are the same as
880880-- polyadic constructors.