Alias the current module with Imp

TL;DR Imp lets you do this:

{-# OPTIONS_GHC
  -fplugin=Imp
  -fplugin-opt=Imp:--alias=_:This #-}
print = putStrLn . show
main = This.print ()
8 Likes

Many times I wish I had This, thanks to you now I do!

3 Likes