autopack-0.0.0.0: Custom Setup to automate package modules discovery

Copyright(c) 2020 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Autopack

Description

Custom Setup to automate package modules discovery

Synopsis

Documentation

defaultMainAutoModules :: IO () Source #

The main function that should be used in the custom Setup.hs files in the following way:

import Autopack (defaultMainAutoModules)

main :: IO ()
main = defaultMainAutoModules

This function uses custom hooks with defaultMainWithHooks that discover all Haskell modules in the hs-source-dirs directories and implies this list into exposed-modules of the library.