summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_compile/read059.hs
blob: 79989afd3f02f8284e187356e47f27e97da91afa (plain)
1
2
3
4
5
6
7
8
9
10
11

{-# LANGUAGE RecursiveDo #-}

module Foo where

import Control.Monad.Fix

z :: Maybe [Int]
z = mdo x <- return (1:x)
        return (take 4 x)