Safe Haskell | None |
---|---|
Language | Haskell2010 |
These helper functions are usually used with embedFile
.
- decodeBimap :: (FromJSON (Map b a), Ord a, Ord b) => ByteString -> Bimap a b
Documentation
decodeBimap :: (FromJSON (Map b a), Ord a, Ord b) => ByteString -> Bimap a b Source #
Decodes some bytes into a bidirection map. The bytes are assumed to be a
JSON object mapping values to keys. That means the resulting bimap is
twist
ed from what you might expect.