Karya, built on 2020-11-26T21:03:17 (patch 23b5be2d53a9e8e7d6136cda5aae2849abe5cded)
Safe HaskellNone

Util.ExtractHs

Description

A library to collect definitions from haskell source and collect them into an output source file.

Synopsis

Documentation

process :: [String] -> (Text -> a) -> (IO.FilePath -> Map IO.FilePath a -> Either Error ([Warning], Text)) -> IO.IO () Source #

extract

stripComments :: Text -> Text Source #

This will be fooled by a {- or -} inside a string. I don't strip -- comments because the extract functions look for left justified text.

breakOnFirst :: Text -> Text -> Text -> (Text, Text) Source #

Like Text.breakOn, but break either of two things.

generate

util