Replace star with Type
This commit is contained in:
parent
b9f249a9ff
commit
9d3ec1d2ad
@ -18,6 +18,7 @@
|
||||
module Data.Vec where
|
||||
|
||||
import Relation.Equality (gcastWith)
|
||||
import Data.Kind (Type)
|
||||
import Data.Nat
|
||||
import Data.Bool
|
||||
import Data.Char (Char)
|
||||
@ -31,7 +32,7 @@ import qualified Data.TypeClass as T
|
||||
infixr 5 :-
|
||||
|
||||
-- | The 'Vec' datatype
|
||||
data Vec ∷ ★ → ℕ → ★ where
|
||||
data Vec ∷ Type → ℕ → Type where
|
||||
Nil ∷ Vec a Z -- ^ empty 'Vec', length 0
|
||||
(:-) ∷ a → Vec a n → Vec a (S n) -- ^ "cons" operator
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user