There was an error while loading. Please reload this page.
optional
1 parent c6ee45d commit a5bec09Copy full SHA for a5bec09
1 file changed
persistent/Database/Persist/Quasi/Internal/ModelParser.hs
@@ -821,7 +821,7 @@ entityField = do
821
ss <- optional fieldStrictness
822
fn <- L.lexeme spaceConsumer fieldName
823
ft <- L.lexeme spaceConsumer typeExpr -- Note that `typeExpr` consumes outer parentheses.
824
- fa <- optional $ L.lexeme spaceConsumer (many attribute)
+ fa <- L.lexeme spaceConsumer (many attribute)
825
_ <- setLastDocumentablePosition
826
lookAhead (void newline <|> eof)
827
pure $
@@ -831,7 +831,7 @@ entityField = do
831
, entityFieldStrictness = ss
832
, entityFieldName = fn
833
, entityFieldType = ft
834
- , entityFieldAttributes = fromMaybe [] fa
+ , entityFieldAttributes = fa
835
, entityFieldPos = pos
836
}
837
0 commit comments