@@ -1,6 +1,5 @@
11{-# LANGUAGE LambdaCase #-}
22{-# LANGUAGE OverloadedStrings #-}
3−{-# LANGUAGE TupleSections #-}
43{-# LANGUAGE ViewPatterns #-}
54
65-- Module : Gen.Syntax
@@ -335,7 +334,7 @@ googleRequestDecl n assoc extras pre api url m pat prec =
335334
336335 decls = BDecls ()
337336 [ patBind pat $
338− appFun (var "buildClient") $
337+ appFun (var "buildClient")
339338 [ ExpTypeSig () (var "Proxy") $
340339 TyApp () (TyCon () "Proxy") (TyCon () (UnQual () api))
341340 , var "mempty"
@@ -425,7 +424,7 @@ wildcardD f n enc x = \case
425424 prec = PRec () (UnQual () (dname' n)) [PFieldWildcard ()]
426425
427426defJS :: Local -> Exp () -> Exp ()
428−defJS n x = infixApp (infixApp (var "o") ".:?" (fstr n)) ".!=" x
427+defJS n = infixApp (infixApp (var "o") ".:?" (fstr n)) ".!="
429428
430429reqJS :: Local -> Exp ()
431430reqJS = infixApp (var "o") ".:" . fstr
@@ -449,7 +448,7 @@ seqE l (r:rs) = infixApp l "<$>" (infixE r "<*>" rs)
449448
450449objDecl :: Global -> Prefix -> [Derive] -> Map Local Solved -> Decl ()
451450objDecl n p ds rs =
452− DataDecl () arity Nothing (DHead () (dname n)) [conDecl (dname' n) p rs] [(der ds)]
451+ DataDecl () arity Nothing (DHead () (dname n)) [conDecl (dname' n) p rs] [der ds]
453452 where
454453 arity | Map.size rs == 1 = NewType ()
455454 | otherwise = DataType ()
@@ -620,9 +619,9 @@ mapping :: TType -> Exp () -> Exp ()
620619mapping t e = infixE e "." (go t)
621620 where
622621 go = \case
623− TMaybe x@(TList {}) -> var "_Default" : go x
624− TMaybe x -> nest (go x)
625− x -> maybeToList (iso x)
622+ TMaybe x@TList {} -> var "_Default" : go x
623+ TMaybe x -> nest (go x)
624+ x -> maybeToList (iso x)
626625
627626 nest [] = []
628627 nest (x:xs) = [app (var "mapping") (infixE x "." xs)]