| Copyright | Andrew G. Seniuk 2014-2015 |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Andrew Seniuk <[email protected]> |
| Stability | provisional |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Control.DeepSeq.Bounded.Compile
Description
This is normally part of Pattern, but is broken out for the transitional version 0.6.*.
Documentation
compilePat :: String -> Pattern Source
showPat :: Pattern -> String Source
Inverse of compilePat.
showPat . compilePat patstring = patstring
(up to optional whitespace, and canonical ordering of any attributes),
provided that compilePat patstring succeeds.
(And, only up to subpatterns elided from # (WI or TI) or from * (WW, WN, TW, or TN) nodes, in case these are still accepted by the parser!)