diff options
author | Josh Price <joshprice247+git@gmail.com> | 2016-03-23 16:19:01 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-03-24 10:53:27 +0100 |
commit | 03a1bb4d010f94bed233ca261bf44e00c7bd9878 (patch) | |
tree | 890d30986fc232bc3715d3a39ec5aea73b430755 /testsuite/tests/arrows | |
parent | 2708c22b8c8a415446d963575c0396a038b43a93 (diff) | |
download | haskell-03a1bb4d010f94bed233ca261bf44e00c7bd9878.tar.gz |
Add unicode syntax for banana brackets
Summary:
Add "⦇" and "⦈" as unicode alternatives for "(|" and "|)" respectively.
This must be implemented differently than other unicode additions
because ⦇" and "⦈" are interpretted as a $unigraphic rather than
a $unisymbol.
Test Plan: validate
Reviewers: goldfire, bgamari, austin
Reviewed By: bgamari, austin
Subscribers: thomie, mpickering
Differential Revision: https://phabricator.haskell.org/D2012
GHC Trac Issues: #10162
Diffstat (limited to 'testsuite/tests/arrows')
-rw-r--r-- | testsuite/tests/arrows/should_compile/arrowform1.hs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/testsuite/tests/arrows/should_compile/arrowform1.hs b/testsuite/tests/arrows/should_compile/arrowform1.hs index 70b9669ef1..c41e6c7a0a 100644 --- a/testsuite/tests/arrows/should_compile/arrowform1.hs +++ b/testsuite/tests/arrows/should_compile/arrowform1.hs @@ -9,22 +9,22 @@ handle f h = proc (b,s) -> (f -< (b,s)) <+> (h -< (b,("FAIL",s))) f :: ArrowPlus a => a (Int,Int) String f = proc (x,y) -> - (|handle - (returnA -< show y) - (\s -> returnA -< s ++ show x) - |) + (|handle + (returnA -< show y) + (\s -> returnA -< s ++ show x) + |) g :: ArrowPlus a => a (Int,Int) String g = proc (x,y) -> - (|handle - (\msg -> returnA -< msg ++ show y) - (\s msg -> returnA -< s ++ show x) - |) ("hello " ++ show x) + (|handle + (\msg -> returnA -< msg ++ show y) + (\s msg -> returnA -< s ++ show x) + |) ("hello " ++ show x) h :: ArrowPlus a => a (Int,Int) Int h = proc (x,y) -> - ( - (\z -> returnA -< x + z) - <+> - (\z -> returnA -< y + z) - ) (x*y) + ( + (\z -> returnA -< x + z) + <+> + (\z -> returnA -< y + z) + ) (x*y) |