| Safe Haskell | None |
|---|
CLaSH.Primitives.Util
Description
Utility functions to generate Primitives
- generatePrimMap :: [FilePath] -> IO PrimMap
- decodeAndReport :: FromJSON a => ByteString -> Maybe a
Documentation
Generate a set of primitives that are found in the primitive definition files in the given directories.
Arguments
| :: FromJSON a | |
| => ByteString | Bytestring to parse |
| -> Maybe a |
Parse a ByteString according to the given JSON template. Prints failures
on stdout, and returns Nothing if parsing fails.