Add back Buildable instance for Const

This commit is contained in:
Gabriel Gonzalez 2016-09-18 21:31:27 -07:00
parent d36eabb0af
commit afa3844699

View File

@ -87,6 +87,9 @@ import qualified NeatInterpolation
-}
data Const = Type | Kind deriving (Show, Bounded, Enum)
instance Buildable Const where
build = buildConst
axiom :: Const -> Either TypeError Const
axiom Type = return Kind
axiom Kind = Left (TypeError Context.empty (Const Kind) (Untyped Kind))