Skip to content

Commit

Permalink
Add explicite strictness on some types
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelBoucey committed Sep 3, 2022
1 parent 5d96985 commit e75fad0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Database/Cayley/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ instance Show QueryLang where
show MQL = "mql"

data CayleyConfig = CayleyConfig
{ serverPort :: Int
, serverName :: String
, apiVersion :: APIVersion
, queryLang :: QueryLang
{ serverPort :: !Int
, serverName :: !String
, apiVersion :: !APIVersion
, queryLang :: !QueryLang
} deriving (Show)

-- | CayleyConfig { serverPort = 64210 , serverName = "localhost" , apiVersion = V1 , queryLang = Gremlin }
Expand All @@ -39,8 +39,8 @@ defaultCayleyConfig = CayleyConfig
}

data CayleyConnection = CayleyConnection
{ cayleyConfig :: CayleyConfig
, manager :: Manager
{ cayleyConfig :: !CayleyConfig
, manager :: !Manager
}

data Quad = Quad
Expand Down

0 comments on commit e75fad0

Please sign in to comment.