]> Git — Sourcephile - haskell/symantic.git/blob - Language/Symantic/Type/Unit.hs
init
[haskell/symantic.git] / Language / Symantic / Type / Unit.hs
1 {-# LANGUAGE FlexibleContexts #-}
2 {-# LANGUAGE FlexibleInstances #-}
3 {-# LANGUAGE ScopedTypeVariables #-}
4 {-# LANGUAGE TypeFamilies #-}
5 {-# OPTIONS_GHC -fno-warn-orphans #-}
6 module Language.Symantic.Type.Unit where
7
8 import Language.Symantic.Type.Common
9
10 -- * Type 'Type_Unit'
11 -- | The @()@ type.
12 type Type_Unit = Type_Type0 ()
13
14 instance -- String_from_Type
15 String_from_Type (Type_Unit root) where
16 string_from_type _ = "()"
17
18 -- | Convenient alias to include a 'Type_Unit' within a type.
19 type_unit :: Lift_Type_Root Type_Unit root => root ()
20 type_unit = type_type0