Skip to content

Commit bf5dd20

Browse files
committed
fix a bug
1 parent 5bfce3a commit bf5dd20

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

persistent/Database/Persist/Quasi/Internal/ModelParser.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,12 @@ fieldStrictness = label "strictness sigil" $ do
565565
fieldName :: Parser FieldName
566566
fieldName = label "field name" $ do
567567
fl <- lowerChar
568-
rl <- many alphaNumChar
568+
rl <- many fieldNameChar
569569
pure . FieldName . Text.pack $ fl : rl
570+
where
571+
fieldNameChar = choice [ alphaNumChar
572+
, char '_'
573+
]
570574

571575
ptext :: Parser Attribute
572576
ptext = label "plain attribute" $ do

0 commit comments

Comments
 (0)