Karya, built on Sun Nov 26 01:04:37 PST 2017 (patch 0a920b2bde70c0cbac8ee09d158064798b61bbe5)

Safe HaskellNone

Util.ExtractHs

Contents

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 on two things.

generate

util