nano-ui-emit-0.2.0.0: test/DeferredWrongMessage.hs
{-# OPTIONS_GHC -fdefer-type-errors -Wno-deferred-type-errors #-}
-- | A view that must not typecheck, with its type error deferred to run time,
-- so the suite can check that emitting another message type is an error.
module DeferredWrongMessage (wrongMessage) where
import NanoUI.Emit (NanoUIE, emit)
wrongMessage :: NanoUIE Int ()
wrongMessage = emit True