Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- isData :: alienValue -> Bool
- data IntList
- extractIntList :: alienValue -> IntList
- injectIntList :: IntList -> alienValue
- newtype Drawing = Drawing [(Integer, Integer)]
- newtype AlienState = AlienState IntList
- interactWith :: alienValue -> AlienState -> IntList -> (AlienState, Either IntList [Drawing])
Documentation
isData :: alienValue -> Bool Source #
The aliens have clearly ascended past any need for types, using, perhaps
some technique like "not making any mistakes in your code".
To them, b (s i i) (c b (s i i))
is perfectly valid. To us this is
incomprehensible gibberish. It is for this reason that we shall ask the
question which no human shall dare ask:
Is this value a data constructor, or a function closure?
A squiggle-encodeable structure
extractIntList :: alienValue -> IntList Source #
Extract an IntList
from the alien dimension into ours.
injectIntList :: IntList -> alienValue Source #
Inject an IntList
into the alien dimension.
newtype AlienState Source #
Instances
Eq AlienState Source # | |
Defined in Alien.FFI (==) :: AlienState -> AlienState -> Bool # (/=) :: AlienState -> AlienState -> Bool # | |
Ord AlienState Source # | |
Defined in Alien.FFI compare :: AlienState -> AlienState -> Ordering # (<) :: AlienState -> AlienState -> Bool # (<=) :: AlienState -> AlienState -> Bool # (>) :: AlienState -> AlienState -> Bool # (>=) :: AlienState -> AlienState -> Bool # max :: AlienState -> AlienState -> AlienState # min :: AlienState -> AlienState -> AlienState # | |
Read AlienState Source # | |
Defined in Alien.FFI readsPrec :: Int -> ReadS AlienState # readList :: ReadS [AlienState] # readPrec :: ReadPrec AlienState # readListPrec :: ReadPrec [AlienState] # | |
Show AlienState Source # | |
Defined in Alien.FFI showsPrec :: Int -> AlienState -> ShowS # show :: AlienState -> String # showList :: [AlienState] -> ShowS # |
interactWith :: alienValue -> AlienState -> IntList -> (AlienState, Either IntList [Drawing]) Source #