fixed ormolu

This commit is contained in:
Martin Sosic 2021-09-21 21:16:34 +02:00
parent 70fc06ee15
commit 84f32b0e67

View File

@ -10,21 +10,22 @@ where
import Analyzer.Evaluator.TH (makeDeclType, makeEnumType)
import qualified Analyzer.TypeDefinitions as TD
{- ORMOLU_DISABLE -}
-- | Collection of domain types that are standard for Wasp, that define what the Wasp language looks like.
-- These are injected this way instead of hardcoding them into the Analyzer in order to make it
-- easier to modify and maintain the Wasp compiler/language.
stdTypes :: TD.TypeDefinitions
stdTypes =
{- ORMOLU_DISABLE -}
TD.addEnumType @AuthMethod $
TD.addDeclType @App $
TD.empty
{- ORMOLU_ENABLE -}
{- ORMOLU_ENABLE -}
-- TODO: Remove these from here and instead use types from the Wasp module (Wasp AST).
-- | TODO: Remove these types from here and instead use types from the Wasp module (Wasp AST).
-- For that we will need to make sure that those types are correctly shaped so that our
-- TH functions can automatically create appropriate instances for them.
---------- Test/mock types ------------
--------- MOCK TYPES ----------
data AuthMethod = EmailAndPassword deriving (Show, Eq)
data App = App {title :: String, authMethod :: AuthMethod} deriving (Show, Eq)
@ -32,5 +33,5 @@ data App = App {title :: String, authMethod :: AuthMethod} deriving (Show, Eq)
makeEnumType ''AuthMethod
makeDeclType ''App
---------------------------------------
-------- / MOCK TYPES ---------