Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- edn :: QuasiQuoter
- ednList :: QuasiQuoter
- ednMap :: QuasiQuoter
- ednVec :: QuasiQuoter
- ednSet :: QuasiQuoter
- fromEDN :: forall a. (Lift a, FromEDN a) => QuasiQuoter
Documentation
edn :: QuasiQuoter Source #
Quasiquoter for TaggedValue
.
Tagged "foo" "bar" Nil === [edn| #foo/bar nil |]
ednList :: QuasiQuoter Source #
Quasiquoter for untagged Value
wrapped in a List.
[ednList| #foo/bar nil |] === List [ Tagged "foo" "bar" Nil ]
ednMap :: QuasiQuoter Source #
Quasiquoter for untagged Value
wrapped in a Map.
[ednMap| :key value |] === Map [ (NoTag (Keyword "key"), NoTag (Symbol "" "value")) ]
ednVec :: QuasiQuoter Source #
Quasiquoter for untagged Value
wrapped in a Vec.
[ednVec| #foo/bar nil |] === Vec [ Tagged "foo" "bar" Nil ]
ednSet :: QuasiQuoter Source #
Quasiquoter for untagged Value
wrapped in a Set.
[ednList| #foo/bar nil |] === List [ Tagged "foo" "bar" Nil ]
fromEDN :: forall a. (Lift a, FromEDN a) => QuasiQuoter Source #
Specializable QuasiQuoter for compile-time decoding.
ednPerson = fromEDN @Person
And in another module (a TH restriction):
theFred = [ednPerson| #myapp/Person { :first "Fred" } |]