Karya, built on Mon Jul 24 11:39:07 PDT 2017 (patch 33511aca01257b76b88de7c7a2763b7a965c084e)

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