fpco-api-1.2.0.2: Simple interface to the FP Complete IDE API.

Safe HaskellNone

FP.API

Synopsis

Documentation

themeToString :: Theme -> StringSource

Convert a theme to a string.

themeName :: Theme -> StringSource

Get a human-readable name for a theme.

themeDescription :: Theme -> StringSource

Get a human-readable description of a string.

enumerateThemes :: [Theme]Source

Similar to [minBound..maxBound], with our own custom ordering.

defaultTheme :: ThemeSource

The default theme to use when there is no existing theme.

defaultFontSize :: IntSource

The default font size to use.

defaultLicense :: IdeLicenseSource

Default license to use upon initialization.

invalidSettingsError :: TextSource

Error that can be returned by some commands, which indicates that the command requires that the settings file be valid.

serverSessionNotReadyError :: TextSource

Error that can be returned by GetProjectMessages, which indicates that the backend server hasn't started yet. In order to cause the server to run, some normal command needs to be executed (not a project messages poll, though).

projectSettingsPath :: TextSource

The filepath used for the settings file.

validGitBranch :: String -> BoolSource

Determine whether a git branch name is valid.

TODO: This could be better. See, e.g. the regexes here: http:stackoverflow.coma12093994/1164871

describeAction :: Action -> TextSource

Give a human readable description for actions that could be used in a sentence.

canDo :: IdeLicense -> Action -> BoolSource

Can the given role do the given action?

licenseName :: IdeLicense -> TextSource

Get the name of the license, for use in code IDs and such.