Skip to content
GitLab
Explore
Sign in
Register
Glasgow Haskell Compiler
GHC
Wiki
Compiling Case Expressions in ghc
Compiling Case Expressions in ghc
· Changes
Page history
Update Compiling Case Expressions in ghc
authored
Sep 27, 2021
by
Neo
Hide whitespace changes
Inline
Side-by-side
Compiling-Case-Expressions-in-ghc.md
View page @
61a14c46
...
@@ -257,18 +257,18 @@ isHexDigit '6' = IsDigit
...
@@ -257,18 +257,18 @@ isHexDigit '6' = IsDigit
isHexDigit '7' = IsDigit
isHexDigit '7' = IsDigit
isHexDigit '8' = IsDigit
isHexDigit '8' = IsDigit
isHexDigit '9' = IsDigit
isHexDigit '9' = IsDigit
isHexDigit 'a' = IsLower
isHexDigit 'b' = IsLower
isHexDigit 'c' = IsLower
isHexDigit 'd' = IsLower
isHexDigit 'e' = IsLower
isHexDigit 'f' = IsLower
isHexDigit 'A' = IsUpper
isHexDigit 'A' = IsUpper
isHexDigit 'B' = IsUpper
isHexDigit 'B' = IsUpper
isHexDigit 'C' = IsUpper
isHexDigit 'C' = IsUpper
isHexDigit 'D' = IsUpper
isHexDigit 'D' = IsUpper
isHexDigit 'E' = IsUpper
isHexDigit 'E' = IsUpper
isHexDigit 'F' = IsUpper
isHexDigit 'F' = IsUpper
isHexDigit 'a' = IsLower
isHexDigit 'b' = IsLower
isHexDigit 'c' = IsLower
isHexDigit 'd' = IsLower
isHexDigit 'e' = IsLower
isHexDigit 'f' = IsLower
isHexDigit _ = IsNone
isHexDigit _ = IsNone
```
```
In this kind of segment we identify regions with cases consecutive going to the same label. For the above we would have identified three such regions:
In this kind of segment we identify regions with cases consecutive going to the same label. For the above we would have identified three such regions:
...
...