extra-1.5: Extra functions I use.

Safe HaskellSafe-Inferred

Data.Version.Extra

Description

This module extends Data.Version with extra utilities. The package also exports the existing Data.Version functions.

Synopsis

Documentation

makeVersion :: [Int] -> Version

Construct tag-less Version

 showVersion (makeVersion [1,2,3]) == "1.2.3"

readVersion :: String -> Version

Read a Version or throw an exception.

 \x -> readVersion (showVersion x) == x
 readVersion "hello" == undefined