1 {-# LANGUAGE FlexibleContexts #-}
2 {-# LANGUAGE FlexibleInstances #-}
3 {-# LANGUAGE PatternSynonyms #-}
4 {-# LANGUAGE ScopedTypeVariables #-}
5 {-# LANGUAGE TypeFamilies #-}
6 {-# OPTIONS_GHC -fno-warn-orphans #-}
7 module Language.Symantic.Type.Int where
10 import Language.Symantic.Type.Common
14 type Type_Int = Type_Type0 (Proxy Int)
16 pattern Type_Int :: Type_Type0 (Proxy Int) root Int
17 pattern Type_Int = Type_Type0 Proxy
19 instance -- String_from_Type
20 String_from_Type (Type_Int root) where
21 string_from_type _ = "Int"
23 -- | Inject 'Type_Int' within a root type.
24 type_int :: Lift_Type_Root Type_Int root => root Int