We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bfce3a commit bf5dd20Copy full SHA for bf5dd20
persistent/Database/Persist/Quasi/Internal/ModelParser.hs
@@ -565,8 +565,12 @@ fieldStrictness = label "strictness sigil" $ do
565
fieldName :: Parser FieldName
566
fieldName = label "field name" $ do
567
fl <- lowerChar
568
- rl <- many alphaNumChar
+ rl <- many fieldNameChar
569
pure . FieldName . Text.pack $ fl : rl
570
+ where
571
+ fieldNameChar = choice [ alphaNumChar
572
+ , char '_'
573
+ ]
574
575
ptext :: Parser Attribute
576
ptext = label "plain attribute" $ do
0 commit comments