hsdev-0.1.2.5: Haskell development library and tool with support of autocompletion, symbol info, go to declaration, find references etc.

Safe HaskellNone
LanguageHaskell98

HsDev.Project

Contents

Synopsis

Documentation

class Target a where Source

Methods

buildInfo :: a -> Info Source

data Library Source

Library in project

Constructors

Library 

data Test Source

Test

Constructors

Test 

readProject :: FilePath -> ErrorT String IO Project Source

Read project info from .cabal

loadProject :: Project -> ErrorT String IO Project Source

Load project description

project :: FilePath -> Project Source

Make project by .cabal file

data Extensions a Source

Entity with project extensions

Constructors

Extensions 

Fields

extensions :: [Extension]
 
entity :: a
 

withExtensions :: a -> Info -> Extensions a Source

Extensions for target

infos :: ProjectDescription -> [Info] Source

Returns build targets infos

inTarget :: FilePath -> Info -> Bool Source

Check if source related to target, source must be relative to project directory

fileTarget :: Project -> FilePath -> Maybe Info Source

Get target for source file

findSourceDir :: Project -> FilePath -> Maybe FilePath Source

Finds source dir file belongs to

sourceDirs :: ProjectDescription -> [Extensions FilePath] Source

Returns source dirs for library, executables and tests

Helpers

showExtension :: Extension -> String Source

Extension as flag name

flagExtension :: String -> Maybe String Source

Convert -Xext to ext

extensionFlag :: String -> String Source

Convert ext to -Xext

extensionsOpts :: [Extension] -> [String] Source

Extensions as opts to GHC