Commit f91b8b0a authored by Niklas Broberg's avatar Niklas Broberg
Browse files

Register XmlSyntax and RegularPatterns as known extensions in Language.Haskell.Extension

Concrete XML syntax is used in the Haskell Server Pages extension 
language, and a description can be found in the paper "Haskell Server 
Pages through Dynamic Loading" by Niklas Broberg, published in Haskell 
Workshop '05.

Regular expression pattern matching is described in the paper "Regular 
Expression Patterns" by Niklas Broberg, Andreas Farre and Josef 
Svenningsson, published in ICFP '04.
parent 0e5cf597
......@@ -134,6 +134,18 @@ data Extension
| TransformListComp
| ViewPatterns
-- | Allow concrete XML syntax to be used in expressions and patterns,
-- as per the Haskell Server Pages extension language:
-- <http://www.haskell.org/haskellwiki/HSP>. The ideas behind it are
-- discussed in the paper "Haskell Server Pages through Dynamic Loading"
-- by Niklas Broberg, from Haskell Workshop '05.
| XmlSyntax
-- | Allow regular pattern matching over lists, as discussed in the
-- paper "Regular Expression Patterns" by Niklas Broberg, Andreas Farre
-- and Josef Svenningsson, from ICFP '04.
| RegularPatterns
| UnknownExtension String
deriving (Show, Read, Eq)
......@@ -209,6 +221,8 @@ knownExtensions =
, QuasiQuotes
, TransformListComp
, ViewPatterns
, XmlSyntax
, RegularPatterns
]
instance Text Extension where
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment