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

Morley.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.