summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2014-09-24 23:47:00 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2014-09-24 23:47:00 +0200
commitfb848179c85dca388edd6d92ef5cd7cd0520b4c8 (patch)
treed3b042338b730ad28f9ce49d2cbe9242d896c381 /testsuite
parent805ee118b823f271dfd8036d35b15eb3454a95ad (diff)
downloadhaskell-fb848179c85dca388edd6d92ef5cd7cd0520b4c8.tar.gz
`M-x delete-trailing-whitespace` & `M-x untabify`
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/mdo/should_run/mdorun002.hs14
1 files changed, 7 insertions, 7 deletions
diff --git a/testsuite/tests/mdo/should_run/mdorun002.hs b/testsuite/tests/mdo/should_run/mdorun002.hs
index 0a09451324..ad40b5f03a 100644
--- a/testsuite/tests/mdo/should_run/mdorun002.hs
+++ b/testsuite/tests/mdo/should_run/mdorun002.hs
@@ -23,7 +23,7 @@ ll = mdo n0 <- newNode n3 0 n1
data Direction = Forward | Backward deriving Eq
traverse :: Direction -> Node s a -> ST s [a]
-traverse dir (N (v, b, i, f)) =
+traverse dir (N (v, b, i, f)) =
do visited <- readSTRef v
if visited
then return []
@@ -44,14 +44,14 @@ l2dll' p (x:xs) = mdo c <- newNode p x f
return (c, l)
insertAfter :: Node s a -> a -> ST s (Node s a)
-insertAfter cur@(N (v, prev, val, next)) i
+insertAfter cur@(N (v, prev, val, next)) i
= do vis <- newSTRef False
let newCell = N (vis, cur, i, next)
- return (N (v, prev, val, newCell))
+ return (N (v, prev, val, newCell))
-test = runST (do l <- l2dll [1 .. 10]
- l' <- insertAfter l 12
- l'' <- insertAfter l' 13
- traverse Forward l'')
+test = runST (do l <- l2dll [1 .. 10]
+ l' <- insertAfter l 12
+ l'' <- insertAfter l' 13
+ traverse Forward l'')
main = print test