lambda Typer

Copyright(c) 2018 Nicolas Osborne
LicenseBSD 3-clauses
Safe HaskellSafe

Utils

Description

 

Synopsis

Documentation

oneSplit :: Char -> [Char] -> ([Char], [Char]) Source #

Split a string into two substrings, the prefix up to the first occurrence of the given Char, and the suffix beginning after this occurrence.

input
the separator
input
the string
output
the pair of the two substrings

stripPar :: [Char] -> [Char] Source #

strip a string from its outer parenthesis if there is any