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

Description

Re-exports headerSizeXY functions from all existing implementation modules.

Synopsis

Documentation

headerSizeCSS :: Text -> Int Source #

Returns size of license header (as number of lines) in given CSS source code. The very first comment block is considered as license header, anything after as start of the actual code.

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

headerSizeHTML :: Text -> Int Source #

Returns size of license header (as number of lines) in given HTML source code. The very first HTML comment is considered as license header, anything after as start of the actual code.

headerSizeJava :: Text -> Int Source #

Returns size of license header (as number of lines) in given Java 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:

  • package

headerSizeJS :: Text -> Int Source #

Returns size of license header (as number of lines) in given JS source code. The very first comment block is considered as license header, anything after as start of the actual code.

headerSizeScala :: Text -> Int Source #

Returns size of license header (as number of lines) in given Scala 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:

  • class
  • object
  • package