packages feed

purescript-0.10.6: examples/warning/CustomWarning.purs

-- @shouldWarnWith UserDefinedWarning
module Main where

foo :: forall t. Warn (TypeConcat "Custom warning " (TypeString t)) => t -> t
foo x = x

bar :: Int
bar = foo 42