Commit b4ca8a23 authored by Michael Hanus 's avatar Michael Hanus
Browse files

Ord context added in example

parent 17edfa54
......@@ -26,10 +26,10 @@ check5 = match ``regex [a-z]+''
-- Examples with parameterized regular expressions:
pregexp1 :: a -> a -> [a] -> Bool
pregexp1 :: Ord a => a -> a -> [a] -> Bool
pregexp1 v1 v2 = match ``regex [<v1>-<v2>]*''
pregexp2 :: a -> a -> [a] -> Bool
pregexp2 :: Ord a => a -> a -> [a] -> Bool
pregexp2 v1 v2 = match ``regex (<v1>|<v2>)*''
-- A regular expression containing a complex Curry expression:
......
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