Skip to content

Commit

Permalink
Switch code for decision trees and pattern matching to Data.Utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
evancz committed Nov 15, 2018
1 parent fb25870 commit 5a3d912
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions compiler/src/Nitpick/PatternMatches.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ http://moscova.inria.fr/~maranget/papers/warn/warn.pdf
import qualified Data.List as List
import qualified Data.Map as Map
import qualified Data.Maybe as Maybe
import qualified Data.Text as Text
import Data.Utf8 (Utf8)

import qualified AST.Canonical as Can
import qualified AST.Module.Name as ModuleName
Expand All @@ -41,8 +41,8 @@ data Pattern


data Literal
= Chr Text.Text
| Str Text.Text
= Chr Utf8
| Str Utf8
| Int Int
deriving (Eq)

Expand Down
6 changes: 3 additions & 3 deletions compiler/src/Optimize/DecisionTree.hs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import Data.Binary
import qualified Data.List as List
import qualified Data.Maybe as Maybe
import qualified Data.Set as Set
import Data.Text (Text)
import Data.Utf8 (Utf8)

import qualified AST.Canonical as Can
import qualified AST.Module.Name as ModuleName
Expand Down Expand Up @@ -77,8 +77,8 @@ data Test
| IsNil
| IsTuple
| IsInt Int
| IsChr Text
| IsStr Text
| IsChr Utf8
| IsStr Utf8
| IsBool Bool
deriving (Eq, Ord)

Expand Down

0 comments on commit 5a3d912

Please sign in to comment.