morley-1.12.0: Developer tools for the Michelson Language
Safe HaskellNone
LanguageHaskell2010

Util.Main

Description

Functions supposed to be used in the Main module.

Synopsis

Documentation

wrapMain :: IO () -> IO () Source #

Some defaults in Haskell are debatable and we typically want to customize them in our applications. Some customizations are done at the level of main. Currently we have two of them:

  1. withUtf8 from the with-utf8 package.
  2. withDisplayExceptionHandler from the uncaught-exception package.

This function is supposed to apply all main customizations that we typcally want to do.