{-# LANGUAGE OverloadedStrings #-}{-# LANGUAGE QuasiQuotes #-}{-# OPTIONS_GHC -fno-warn-unused-imports #-}{-# OPTIONS_GHC -fno-warn-unused-top-binds #-}{-# OPTIONS_GHC -fno-warn-missing-signatures #-}{-# OPTIONS_GHC -fno-warn-unused-do-bind #-}import qualified Data.ByteString.Char8 as Cimport Core.Programimport Core.Textimport Core.Systemb = intoBytes (C.pack "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")data Boom = Boom deriving Showinstance Exception Boommain :: IO ()main = execute $ do event "Processing..." debugR "b" b let x = error "No!" write $ case x of Nothing -> "Nothing!" sleep 0.2 write "Done"