forked from GitHub/gf-core
Replace deprecated pragma with up-to-date one. (#17)
This commit is contained in:
@@ -44,7 +44,7 @@ grammar2haskell opts name gr = foldr (++++) [] $
|
|||||||
| otherwise = ("G"++) . rmForbiddenChars
|
| otherwise = ("G"++) . rmForbiddenChars
|
||||||
-- GF grammars allow weird identifier names inside '', e.g. 'VP/Object'
|
-- GF grammars allow weird identifier names inside '', e.g. 'VP/Object'
|
||||||
rmForbiddenChars = filter (`notElem` "'!#$%&*+./<=>?@\\^|-~")
|
rmForbiddenChars = filter (`notElem` "'!#$%&*+./<=>?@\\^|-~")
|
||||||
pragmas | gadt = ["{-# OPTIONS_GHC -fglasgow-exts #-}","{-# LANGUAGE GADTs #-}"]
|
pragmas | gadt = ["{-# LANGUAGE GADTs, FlexibleInstances, KindSignatures, RankNTypes, TypeSynonymInstances #-}"]
|
||||||
| dataExt = ["{-# LANGUAGE DeriveDataTypeable #-}"]
|
| dataExt = ["{-# LANGUAGE DeriveDataTypeable #-}"]
|
||||||
| otherwise = []
|
| otherwise = []
|
||||||
derivingClause
|
derivingClause
|
||||||
|
|||||||
Reference in New Issue
Block a user