Karya, built on 2018-05-31T02:46:59 (patch 0a1a35479c514820d77330ae8a978975ba22a47a)

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