uuid-quasi-0.1.0.1: Supplemental package for 'uuid' allowing quasiquotation.

Portabilityportable
Stabilityexperimental
Maintainerinfo@lars-petersen.net
Safe HaskellNone

Data.UUID.Quasi

Description

This library supplies quasiquotation of UUIDs. You should use this in case you want to hardcode UUIDs in your sourcecode with compile-time checking for syntax errors.

Synopsis

Documentation

uuid :: QuasiQuoterSource

The quasiquoter for expressions and patterns of UUID. Make sure to enable '-XQuasiQuotes'.

 > let a = [uuid|550e8400-e29b-41d4-a716-446655440000|]
 > :type a
 a :: UUID
 > case a of { [uuid|550e8400-e29b-41d4-a716-446655440000|] -> True; _ -> False; }
 True

Pattern matching requires '-XViewPatterns'.