Skip to content

Instantly share code, notes, and snippets.

@pete-murphy
Created July 14, 2022 22:37
Show Gist options
  • Select an option

  • Save pete-murphy/103d9a887cc474f4ef17098b219000ad to your computer and use it in GitHub Desktop.

Select an option

Save pete-murphy/103d9a887cc474f4ef17098b219000ad to your computer and use it in GitHub Desktop.
when
module Main where
import Prelude
import Effect.Console (log)
import TryPureScript
whenFalseAndTrue = when (false && true) do
log "whenFalseAndTrue"
whenTrue = when true do
log "whenTrue"
main = render =<< withConsole do
whenFalseAndTrue
whenTrue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment