summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/SlidingTypeSyn.hs
blob: d28f8559bf89b5e35632aa675dd198466b55a499 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# LANGUAGE FlexibleContexts    #-}
{-# LANGUAGE RankNTypes          #-}
{-# LANGUAGE TypeOperators       #-}
{-# LANGUAGE KindSignatures      #-}
{-# LANGUAGE LiberalTypeSynonyms #-}
{-# LANGUAGE GADTs               #-}
{-# LANGUAGE TypeFamilies        #-}


type ( f :->   g) (r :: Type -> Type) ix = f r ix -> g r ix

type ( f :-->  g)  b ix = f b ix -> g b ix

type ((f :---> g)) b ix = f b ix -> g b ix