bdcs-api-0.1.0: BDCS API Server

Safe HaskellNone
LanguageHaskell2010

BDCS.API.Utils

Description

Utility functions for BDCS.API

Synopsis

Documentation

argify :: Foldable t => t String -> [String] Source #

Take a list of possiby comma, or comma-space, separated options and turn it into a list of options

caseInsensitive :: String -> String -> Ordering Source #

Compare 2 strings case-insensitively

Takes into account unicode

data GitLock Source #

Git Repository and its RWLock

This is used to control access to the Git repository. Users should take the lock like this:

RWL.withRead (gitRepoLock repoLock)

Constructors

GitLock 

Fields

maybeIO :: IO a -> IO (Maybe a) Source #

Turn exceptions from an action into Nothing

maybeThrow :: Exception e => e -> Maybe a -> IO a Source #

Throw an IO error when a Maybe is Nothing