cplug-0.2.0.0: Recompile and run partially applied C functions in Haskell, during runtime
Data.Fixable
Synopsis
data Fix a Source
This is a analogue to Maybe, but without all of the predefined instances, to prevent errors.
Maybe
Constructors
Instances
isFixed :: Fix a -> Bool Source
Illustrative examples:
>>> isFixed (Fixed "something") True
>>>
isFixed (Fixed "something")
>>> isFixed Unfixed False
isFixed Unfixed
fromFixed :: Fix a -> a Source
fromFixed throws an error on Unfixed
fromFixed
Unfixed