aboutsummaryrefslogtreecommitdiff
path: root/html-test/src/AdvanceTypes.hs
blob: 939fdf0720c7ce3aee66a9f866f65e5adcd762c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE TypeOperators #-}
module AdvanceTypes where

data Pattern :: [*] -> * where
  Nil :: Pattern '[]
  Cons :: Maybe h -> Pattern t -> Pattern (h ': t)