@@ -5,7 +5,7 @@ Copyright :
5License : BSD3
5License : BSD3
6Maintainer : The Idris Community.
6Maintainer : The Idris Community.
8−{-# LANGUAGE DeriveFunctor, DeriveGeneric, PatternGuards #-}
8+{-# LANGUAGE DeriveDataTypeable, DeriveFunctor, DeriveGeneric, PatternGuards #-}
10module IRTS.Lang where
10module IRTS.Lang where
@@ -14,7 +14,9 @@ import Idris.Core.TT
15import Control.Applicative hiding (Const)
15import Control.Applicative hiding (Const)
16import Control.Monad.State hiding (lift)
16import Control.Monad.State hiding (lift)
17+import Data.Data (Data)
17import Data.List
18import Data.List
19+import Data.Typeable (Typeable)
18import Debug.Trace
20import Debug.Trace
19import GHC.Generics (Generic)
21import GHC.Generics (Generic)
@@ -117,7 +119,7 @@ data FType = FArith ArithTy
117data LAlt' e = LConCase Int Name [Name] e
119data LAlt' e = LConCase Int Name [Name] e
118 | LConstCase Const e
120 | LConstCase Const e
119 | LDefaultCase e
121 | LDefaultCase e
120− deriving (Show, Eq, Functor)
122+ deriving (Show, Eq, Functor, Data, Typeable)
122type LAlt = LAlt' LExp
124type LAlt = LAlt' LExp