hs-conllu-0.1.5: Conllu validating parser and utils.
Copyright© 2018 bruno cuconato
LicenseLPGL-3
Maintainerbruno cuconato <bcclaro+hackage@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Conllu.Utils

Description

the library's utility functions.

Synopsis

Documentation

assNull :: [a] -> Bool -> Bool Source #

if' :: Bool -> a -> a -> a Source #

consIf :: (a -> Bool) -> a -> [a] -> [a] Source #

cons value if it satisfies the predicate, else do nothing.

safehead :: [a] -> Maybe a Source #