Skip to content

Commit

Permalink
Merge pull request #14 from JustusAdam/master
Browse files Browse the repository at this point in the history
Added epsilon, the empty word/list.
  • Loading branch information
roelvandijk committed Jul 25, 2015
2 parents 898ec7d + bd2e75b commit a676a97
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Data/List/Unicode.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module Data.List.Unicode
, (∈), (∋), (∉), (∌)
, (∪), (∖), (∆), (∩)
, (‼)
, 𝜀
) where


Expand Down Expand Up @@ -138,3 +139,13 @@ U+203C, DOUBLE EXCLAMATION MARK
(‼) [α] Int α
(‼) = (!!)
{-# INLINE (‼) #-}

{-|
Epsilon, the empty word (or list)
(ε) = []
(U+3B5, GREEK SMALL LETTER EPSILON)
-}
𝜀 [a]
𝜀 = []
5 changes: 5 additions & 0 deletions Data/String/Unicode.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{-# LANGUAGE UnicodeSyntax #-}
module Data.String.Unicode (𝜀) where


import Data.List.Unicode (𝜀)
3 changes: 2 additions & 1 deletion Prelude/Unicode.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module Prelude.Unicode
, (⊥)
, (∣), (∤)
, ,
, 𝜀
) where


Expand All @@ -39,7 +40,7 @@ import Prelude ( Num, Floating, Fractional, Integer, Integral
import Data.Bool.Unicode ( (∧), (∨), (¬) )
import Data.Eq.Unicode ( (≡), (≢), (≠) )
import Data.Function.Unicode ( (∘) )
import Data.List.Unicode ( (⧺), (∈), (∉), (‼) )
import Data.List.Unicode ( (⧺), (∈), (∉), (‼), 𝜀 )
import Data.Ord.Unicode ( (≤), (≥), (≮), (≯) )


Expand Down
2 changes: 1 addition & 1 deletion base-unicode-symbols.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ library
, Data.List.Unicode
, Data.Monoid.Unicode
, Data.Ord.Unicode
, Data.String.Unicode
, Prelude.Unicode

0 comments on commit a676a97

Please sign in to comment.