-
-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Successfully split non-varpats (#1427)
- Loading branch information
Showing
4 changed files
with
32 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
data ADT = One | Two Int | Three | Four Bool ADT | Five | ||
|
||
case_split :: ADT -> Int | ||
case_split One = _ | ||
case_split (Two i) = _ | ||
case_split Three = _ | ||
case_split (Four b a) = _ | ||
case_split Five = _ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
data ADT = One | Two Int | Three | Four Bool ADT | Five | ||
|
||
case_split :: ADT -> Int | ||
case_split One = _ | ||
case_split (Two i) = _ | ||
case_split Three = _ | ||
case_split (Four b One) = _ | ||
case_split (Four b (Two i)) = _ | ||
case_split (Four b Three) = _ | ||
case_split (Four b (Four b2 a3)) = _ | ||
case_split (Four b Five) = _ | ||
case_split Five = _ |