Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

open import Relation.Binary.PropositionalEquality
open import Data.Unit
open import Data.Product
open ≡-Reasoning
variable
A : Set
B : Set
@kztk-m
kztk-m / mfix.hs
Last active November 29, 2019 13:21
{-# LANGUAGE RecursiveDo #-}
f = do rec a <- do a <- b
putStrLn "Hello"
return a
b <- do return $ return a :: IO (IO ())
return a
f' = do rec b <- do return $ return a :: IO (IO ())
a <- do a <- b
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE Strict #-}
import Debug.Trace
h :: forall a. a -> ()
h a =
let f :: Show a => ()
f = trace "Hi" $ traceShow a ()
in ()