mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-11-23 19:29:17 +03:00
Follow hlint suggestions. (#513)
This commit is contained in:
parent
7865110085
commit
08704f4117
@ -1,5 +1,3 @@
|
||||
{-# LANGUAGE LambdaCase #-}
|
||||
|
||||
module Wasp.Analyzer.Evaluator.EvaluationError
|
||||
( EvaluationError (..),
|
||||
EvalErrorCtx (..),
|
||||
|
@ -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"
|
||||
|
@ -1,5 +1,3 @@
|
||||
{-# LANGUAGE LambdaCase #-}
|
||||
|
||||
module Wasp.Analyzer.TypeChecker.TypeError
|
||||
( TypeError (..),
|
||||
TypeError' (..),
|
||||
|
@ -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" $
|
||||
|
Loading…
Reference in New Issue
Block a user