Safe Haskell | None |
---|
- data Item = Item {}
- item :: Item
- data Icon
- type Renderer a = Renderer' Text a
- type Renderer' q a = q -> Either String a -> Items
- runScript :: Query a -> Renderer a -> IO ()
- runScript' :: ([Text] -> q) -> Query' q a -> Renderer' q a -> IO ()
- searchRenderer :: Search -> Renderer [Text]
- data Search = Search {}
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 String 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