boltzmann-brain-1.4: Boltzmann sampler compiler for combinatorial systems.

Copyright(c) Maciej Bendkowski 2017-2018
LicenseBSD3
Maintainermaciej.bendkowski@tcs.uj.edu.pl
Stabilityexperimental
Safe HaskellSafe
LanguageHaskell2010

Data.Boltzmann.Internal.Annotations

Description

General utilities meant for handing system annotations guiding the tuning and compilation process.

Synopsis

Documentation

withDefault :: Read a => Map String String -> String -> a -> a Source #

Read a given key value of a map with a default fallback.

withString :: Map String String -> String -> String -> String Source #

Read a given key value of a map with a default string fallback.

withDouble :: Map String String -> String -> Double -> Double Source #

withDefault specialised to doubles.

withInt :: Map String String -> String -> Int -> Int Source #

withDefault specialised to ints.

withBool :: Map String String -> String -> Bool -> Bool Source #

withDefault specialised to bools.