]> Git — Sourcephile - haskell/symantic.git/blob - Language/Symantic/Type/Ordering.hs
init
[haskell/symantic.git] / Language / Symantic / Type / Ordering.hs
1 {-# LANGUAGE FlexibleContexts #-}
2 {-# LANGUAGE FlexibleInstances #-}
3 {-# LANGUAGE PatternSynonyms #-}
4 {-# LANGUAGE TypeFamilies #-}
5 {-# OPTIONS_GHC -fno-warn-orphans #-}
6 module Language.Symantic.Type.Ordering where
7
8 import Data.Proxy
9 import Language.Symantic.Type.Common
10
11 -- * Type 'Type_Ordering'
12 -- | The 'Ordering' type.
13 type Type_Ordering = Type_Type0 (Proxy Ordering)
14
15 pattern Type_Ordering :: Type_Ordering root Ordering
16 pattern Type_Ordering = Type_Type0 Proxy
17
18 instance -- String_from_Type
19 String_from_Type (Type_Ordering root) where
20 string_from_type _ = "Ordering"
21
22 -- | Inject 'Type_Ordering' within a root type.
23 type_ordering :: Lift_Type_Root Type_Ordering root => root Ordering
24 type_ordering = type_type0