Follow hlint suggestions. (#513)

This commit is contained in:
Phil de Joux 2022-03-18 07:33:37 -04:00 committed by GitHub
parent 7865110085
commit 08704f4117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 7 deletions

View File

@ -1,5 +1,3 @@
{-# LANGUAGE LambdaCase #-}
module Wasp.Analyzer.Evaluator.EvaluationError
( EvaluationError (..),
EvalErrorCtx (..),

View File

@ -40,7 +40,7 @@ instance Show Type where
entries -> "{\n" ++ intercalate ",\n" (map ((" " ++) . showEntry) entries) ++ "\n}"
ListType typ -> "[" ++ show typ ++ "]"
EmptyListType -> "[]"
TupleType (t1, t2, ts) -> "(" ++ (intercalate ", " $ show <$> (t1 : t2 : ts)) ++ ")"
TupleType (t1, t2, ts) -> "(" ++ intercalate ", " (show <$> (t1 : t2 : ts)) ++ ")"
StringType -> "string"
NumberType -> "number"
BoolType -> "bool"

View File

@ -1,5 +1,3 @@
{-# LANGUAGE LambdaCase #-}
module Wasp.Analyzer.TypeChecker.TypeError
( TypeError (..),
TypeError' (..),

View File

@ -59,7 +59,7 @@ spec_AppSpecValid = do
}
describe "should validate that when a page has authRequired, app.auth is also set." $ do
let makeSpec = \appAuth pageAuthRequired ->
let makeSpec appAuth pageAuthRequired =
basicAppSpec
{ AS.decls =
[ AS.Decl.makeDecl "TestApp" $
@ -82,7 +82,7 @@ spec_AppSpecValid = do
]
describe "should validate that when app.auth is using EmailAndPassword, user entity is of valid shape." $ do
let makeSpec = \appAuth userEntity ->
let makeSpec appAuth userEntity =
basicAppSpec
{ AS.decls =
[ AS.Decl.makeDecl "TestApp" $