Skip to content

Conversation

@pseudonom
Copy link

This is pretty convenient for use with RebindableSyntax.

@endgame
Copy link

endgame commented Jan 15, 2018

I came here to leave almost exactly the same PR. Is there any chance it can get merged?

Also, there seems to be some weird interactions with return and -XRebindableSyntax. This module fails to compile:

{-# LANGUAGE RebindableSyntax #-}

module Lib where

import Prelude (IO)

foo :: IO ()
foo = do
  pure ()

This is the error (GHC 8.0.2):

error:
    Not in scope: ‘return’
    Perhaps you want to add ‘return’ to the import list
    in the import of ‘Prelude’ (src/Lib.hs:5:1-19).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants