Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meck/alfred-footman
A library for writing script filters for Alfred in Haskell
https://github.com/meck/alfred-footman
Last synced: 8 days ago
JSON representation
A library for writing script filters for Alfred in Haskell
- Host: GitHub
- URL: https://github.com/meck/alfred-footman
- Owner: meck
- License: bsd-3-clause
- Created: 2018-10-28T16:49:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-23T19:19:06.000Z (over 5 years ago)
- Last Synced: 2024-08-01T02:32:28.830Z (3 months ago)
- Language: Haskell
- Size: 36.1 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
- alfred-workflows - Alfred Footman - Write workflows in Haskell (Libraries)
README
## alfred-footman
### A library for writing script filters in [Alfred](https://www.alfredapp.com) persistent state
### Somewhat a WIP.
Example usage:
``` haskell
import Alfred
import Data.Time.LocalTimemyReturn :: AlfM String Return
myReturn = do
time <- liftIO getZonedTime
prevTime <- get
put $ show time
return $ defaultReturn
{ items = [ defaultItem { title = "Time"
, subtitle = Just "Outputs the last time the scipt was run"
, arg = Just $ show prevTime }]}main = alfMain myReturn
```* Requires [stack](http://www.haskellstack.org)
* The code is documented with haddock
* There is an test workflow included in ```app/Main.hs``` that can be built with ```./buildexample.sh```#### Use with alfred
The easiest way to develop a workflow is to point the script action you are making to ```~/.local/bin/``` and run
```stack install``` while testing, and when done copy the executable into the script folder.