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

Headroom.Header.Impl.Haskell

Description

Support for detecting license header in Haskell source code files.

Synopsis

Documentation

headerSizeHaskell :: Text -> Int Source #

Returns size of license header (as number of lines) in given Haskell source code. Current implementation is pretty simple and it only takes line starting with one of the following keywords as the start of code itself:

  • {-#
  • module