packages feed

purescript-0.15.15: tests/purs/warning/CustomWarning3.purs

-- @shouldWarnWith UserDefinedWarning
-- @shouldWarnWith UserDefinedWarning
module Main where

import Prim.TypeError

foo :: Warn (Text "foo") => Int -> Int
foo x = x

-- Defer the "foo" warning and warn with "bar" as well
bar :: Warn (Text "foo") => Warn (Text "bar") => Int
bar = foo 42

baz :: Int
baz = bar