headroom-0.3.2.0: License Header Manager
Copyright(c) 2019-2020 Vaclav Svejcar
LicenseBSD-3-Clause
Maintainervaclav.svejcar@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Headroom.Embedded.TH

Description

This module contains some Template Haskell powered functions, used by Headroom.Embedded module, that needs to be placed in separated module, due to GHC stage restriction.

Synopsis

Documentation

embedConfigFile :: Q Exp Source #

Embeds stub configuration file to source code.

embedDefaultConfig :: Q Exp Source #

Embeds default configuration file to source code.

embedTemplate Source #

Arguments

:: LicenseType

type of the license

-> FileType

type of the source code file

-> Q Exp

content of the appropriate template file

Embeds template file to the source code.