Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Cache = Cache {}
- data Error = Unsupported
- newtype Marshal a = Marshal {
- runMarshal :: StateT Cache Get a
- liftMarshal :: Get a -> Marshal a
- data RubyObject
- = RNil
- | RBool !Bool
- | RFixnum !Int
- | RArray !(Vector RubyObject)
- | RHash !(Map RubyObject RubyObject)
- | RIVar !(RubyObject, ByteString)
- | RString !ByteString
- | RFloat !Double
- | RSymbol !ByteString
- | RError !Error
- pattern NilC :: () => (Eq a, Num a) => a
- pattern FalseC :: () => (Eq a, Num a) => a
- pattern TrueC :: () => (Eq a, Num a) => a
- pattern ArrayC :: () => (Eq a, Num a) => a
- pattern FixnumC :: () => (Eq a, Num a) => a
- pattern FloatC :: () => (Eq a, Num a) => a
- pattern HashC :: () => (Eq a, Num a) => a
- pattern IVarC :: () => (Eq a, Num a) => a
- pattern ObjectLinkC :: () => (Eq a, Num a) => a
- pattern StringC :: () => (Eq a, Num a) => a
- pattern SymbolC :: () => (Eq a, Num a) => a
- pattern SymlinkC :: () => (Eq a, Num a) => a
Documentation
Cache | |
|
Convey when unsupported object encountered.
Unsupported | represents an unsupported Ruby object |
Marshal monad endows the underling Get monad with State.
Marshal | |
|
liftMarshal :: Get a -> Marshal a Source
Lift Get monad into Marshal monad.
data RubyObject Source
Representation of a Ruby object.
RNil | represents |
RBool !Bool | represents |
RFixnum !Int | represents a |
RArray !(Vector RubyObject) | represents an |
RHash !(Map RubyObject RubyObject) | represents an |
RIVar !(RubyObject, ByteString) | represents an |
RString !ByteString | represents a |
RFloat !Double | represents a |
RSymbol !ByteString | represents a |
RError !Error | represents an invalid object |
pattern ObjectLinkC :: () => (Eq a, Num a) => a Source
Object link