From 8c382b3cb1c7368bfb4fde7309fd34bac9cd471c Mon Sep 17 00:00:00 2001 From: Inari Listenmaa Date: Fri, 19 Oct 2018 15:20:05 +0200 Subject: [PATCH] Add {-# LANGUAGE GADTs -#} to the generated Haskell file --- src/compiler/GF/Compile/PGFtoHaskell.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/GF/Compile/PGFtoHaskell.hs b/src/compiler/GF/Compile/PGFtoHaskell.hs index 89366568d..fc17e4e4e 100644 --- a/src/compiler/GF/Compile/PGFtoHaskell.hs +++ b/src/compiler/GF/Compile/PGFtoHaskell.hs @@ -39,7 +39,7 @@ grammar2haskell opts name gr = foldr (++++) [] $ lexical cat = haskellOption opts HaskellLexical && isLexicalCat opts cat gId | haskellOption opts HaskellNoPrefix = id | otherwise = ("G"++) - pragmas | gadt = ["{-# OPTIONS_GHC -fglasgow-exts #-}"] + pragmas | gadt = ["{-# OPTIONS_GHC -fglasgow-exts #-}","{-# LANGUAGE GADTs #-}"] | otherwise = [] types | gadt = datatypesGADT gId lexical gr' | otherwise = datatypes gId lexical gr'