Skip to content

Instantly share code, notes, and snippets.

@joneshf
Created September 11, 2017 04:14
Show Gist options
  • Save joneshf/1d8c0b5d3014324d19eabdb333eca2f8 to your computer and use it in GitHub Desktop.
Save joneshf/1d8c0b5d3014324d19eabdb333eca2f8 to your computer and use it in GitHub Desktop.
module Main where
import Prelude
import Control.Monad.Eff.Console (log)
import Data.List ((..))
import TryPureScript (render, withConsole)
main = render =<< withConsole do
log $ lazyConst "compiles quick" (bottom .. top)
lazyConst :: forall a b. a -> (Lazy => b) -> a
lazyConst x _ = x
-- N.B. We don't even need the instance defined anywhere because we never use it!
class Lazy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment