This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MaybeN where | |
import TypeLevel.Nat | |
import TypeLevel.Bounded | |
data MaybeN n a = NothingN (BoundedNat n) | JustN a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# Language RankNTypes, FlexibleInstances, MultiParamTypeClasses #-} | |
module Church where | |
import Data.Functor.Identity | |
import Traversable -- for fusion rules | |
import Unfoldable_r | |
import Unfoldable | |
import Empty | |
import FIFO_r |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# Language | |
MultiParamTypeClasses | |
,FunctionalDependencies | |
,FlexibleContexts | |
,PatternSynonyms | |
,ViewPatterns | |
,DefaultSignatures | |
#-} | |
module Control.FIFO.FIFO where |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# Language MultiParamTypeClasses , FunctionalDependencies , DefaultSignatures #-} | |
module Unfoldable where | |
import Unfoldable_r | |
import State | |
---- | |
-- Unfold for Stream | |
class Unfoldable0 f where |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# Language | |
RankNTypes | |
,FunctionalDependencies | |
,FlexibleContexts | |
,ScopedTypeVariables | |
#-} | |
module Traversable where | |
import Traversable_r |