Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow hlint suggestions. #513

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions waspc/src/Wasp/Analyzer/Evaluator/EvaluationError.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE LambdaCase #-}

module Wasp.Analyzer.Evaluator.EvaluationError
( EvaluationError (..),
EvalErrorCtx (..),
Expand Down
2 changes: 1 addition & 1 deletion waspc/src/Wasp/Analyzer/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 0 additions & 2 deletions waspc/src/Wasp/Analyzer/TypeChecker/TypeError.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE LambdaCase #-}

module Wasp.Analyzer.TypeChecker.TypeError
( TypeError (..),
TypeError' (..),
Expand Down
4 changes: 2 additions & 2 deletions waspc/test/AppSpec/ValidTest.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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" $
Expand All @@ -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" $
Expand Down