1
0
forked from GitHub/gf-core

Remove accidentally added space character in deriving clause.

This commit is contained in:
Inari Listenmaa
2020-07-31 15:16:45 +02:00
parent aeabc955c8
commit 868566a319

View File

@@ -119,7 +119,7 @@ hDatatype gId derivingClause lexical (cat,rules) =
"data" +++ gId cat +++ "=" ++
(if length rules == 1 then "" else "\n ") +++
foldr1 (\x y -> x ++ "\n |" +++ y) constructors ++++
" " +++ derivingClause
" " +++ derivingClause
where
constructors = [gId f +++ foldr (+++) "" (map (gId) xx) | (f,xx) <- nonLexicalRules (lexical cat) rules]
++ if lexical cat then [lexicalConstructor cat +++ "String"] else []