Add export script for groceries
At this point, I may be taking this idea too far, but what the heck?
This commit is contained in:
parent
362a31166d
commit
25a45fb222
4 changed files with 69 additions and 43 deletions
11
scratch/groceries/export.hs
Normal file
11
scratch/groceries/export.hs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
module Main where
|
||||
|
||||
import Data.Function ((&))
|
||||
import qualified Data.List as L
|
||||
|
||||
-- | Run this to export the grocery list.
|
||||
main :: IO ()
|
||||
main = do
|
||||
x <- readFile "./list.txt"
|
||||
x & lines & filter (not . L.isPrefixOf "- 0x") & unlines & putStrLn
|
||||
pure ()
|
||||
Loading…
Add table
Add a link
Reference in a new issue