Safe Haskell | None |
---|
- data Item = Item {}
- item :: Item
- data Icon
- type Renderer a = Renderer' Text a
- type Renderer' q a = q -> Either Text a -> Items
- runScript :: Query a -> Renderer a -> IO ()
- runScript' :: ([Text] -> q) -> Query' q a -> Renderer' q a -> IO ()
- searchRenderer :: Search -> Renderer [Text]
- searchRenderer' :: Search' a -> Renderer [a]
- data Search = Search {}
- data Search' a = Search' {
- simpleSearch :: Search
- resultURL :: a -> Text
- resultTitle :: a -> Text
Documentation
This type represents items that should be rendered by Alfred as the result of a script filter.
type Renderer a = Renderer' Text aSource
This type represents rendering functions as used by runScript
.
type Renderer' q a = q -> Either Text a -> ItemsSource
This type represents rendering functions as used by runScript'
.
This function runs a script consisting of a query function and a rendering function. The query function takes string parameters and produces an output that is then passed to the rendering function to produce items that are then passed to Alfred.
This function runs a script consisting of a query function and a rendering function. The query function takes string parameters and produces an output that is then passed to the rendering function to produce items that are then passed to Alfred.
searchRenderer :: Search -> Renderer [Text]Source
searchRenderer' :: Search' a -> Renderer [a]Source
This data type represents standard search scripts used by
searchRenderer
.
This data type represents advanced standard search scripts used
by searchRenderer'
.
Search' | |
|