enumerate-function-0.0.1: simple package for inverting functions and testing totality, via brute enumeration of the domain

Safe HaskellNone
LanguageHaskell2010

Enumerate.Function.Example

Description

 

Documentation

main :: IO () Source #

data Edit Source #

Constructors

Edit Action Slice Region 

Instances

data Action Source #

Constructors

Cut 
Delete 
Transpose 

Instances

Bounded Action Source # 
Enum Action Source # 
Eq Action Source # 

Methods

(==) :: Action -> Action -> Bool #

(/=) :: Action -> Action -> Bool #

Ord Action Source # 
Read Action Source # 
Show Action Source # 
Generic Action Source # 

Associated Types

type Rep Action :: * -> * #

Methods

from :: Action -> Rep Action x #

to :: Rep Action x -> Action #

Enumerable Action Source # 

Methods

enumerated :: [Action] #

cardinality :: proxy Action -> Natural #

type Rep Action Source # 
type Rep Action = D1 (MetaData "Action" "Enumerate.Function.Example" "enumerate-function-0.0.1-5QoArEgJQi6BcghU01ilk1" False) ((:+:) (C1 (MetaCons "Cut" PrefixI False) U1) ((:+:) (C1 (MetaCons "Delete" PrefixI False) U1) (C1 (MetaCons "Transpose" PrefixI False) U1)))

data Slice Source #

Constructors

Whole 
Backwards 
Forwards 

Instances

Bounded Slice Source # 
Enum Slice Source # 
Eq Slice Source # 

Methods

(==) :: Slice -> Slice -> Bool #

(/=) :: Slice -> Slice -> Bool #

Ord Slice Source # 

Methods

compare :: Slice -> Slice -> Ordering #

(<) :: Slice -> Slice -> Bool #

(<=) :: Slice -> Slice -> Bool #

(>) :: Slice -> Slice -> Bool #

(>=) :: Slice -> Slice -> Bool #

max :: Slice -> Slice -> Slice #

min :: Slice -> Slice -> Slice #

Read Slice Source # 
Show Slice Source # 

Methods

showsPrec :: Int -> Slice -> ShowS #

show :: Slice -> String #

showList :: [Slice] -> ShowS #

Generic Slice Source # 

Associated Types

type Rep Slice :: * -> * #

Methods

from :: Slice -> Rep Slice x #

to :: Rep Slice x -> Slice #

Enumerable Slice Source # 

Methods

enumerated :: [Slice] #

cardinality :: proxy Slice -> Natural #

type Rep Slice Source # 
type Rep Slice = D1 (MetaData "Slice" "Enumerate.Function.Example" "enumerate-function-0.0.1-5QoArEgJQi6BcghU01ilk1" False) ((:+:) (C1 (MetaCons "Whole" PrefixI False) U1) ((:+:) (C1 (MetaCons "Backwards" PrefixI False) U1) (C1 (MetaCons "Forwards" PrefixI False) U1)))

data Region Source #

Constructors

Character 
Token 
Line 

Instances

Bounded Region Source # 
Enum Region Source # 
Eq Region Source # 

Methods

(==) :: Region -> Region -> Bool #

(/=) :: Region -> Region -> Bool #

Ord Region Source # 
Read Region Source # 
Show Region Source # 
Generic Region Source # 

Associated Types

type Rep Region :: * -> * #

Methods

from :: Region -> Rep Region x #

to :: Rep Region x -> Region #

Enumerable Region Source # 

Methods

enumerated :: [Region] #

cardinality :: proxy Region -> Natural #

type Rep Region Source # 
type Rep Region = D1 (MetaData "Region" "Enumerate.Function.Example" "enumerate-function-0.0.1-5QoArEgJQi6BcghU01ilk1" False) ((:+:) (C1 (MetaCons "Character" PrefixI False) U1) ((:+:) (C1 (MetaCons "Token" PrefixI False) U1) (C1 (MetaCons "Line" PrefixI False) U1)))