clash-lib-0.2.0.1: CAES Language for Synchronous Hardware - As a Library

Safe HaskellNone

CLaSH.Primitives.Util

Description

Utility functions to generate Primitives

Synopsis

Documentation

generatePrimMapSource

Arguments

:: [FilePath]

Directories to search for primitive definitions

-> IO PrimMap 

Generate a set of primitives that are found in the primitive definition files in the given directories.

decodeAndReportSource

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.