tvl-depot/scratch/groceries/export.hs
William Carroll 011f7aeaec Convert grocery list to an .org file
Ensure that the export.hs script refers to the .org file.
2020-07-01 10:45:28 +01:00

11 lines
254 B
Haskell

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.org"
x & lines & filter (not . L.isPrefixOf "- 0x") & unlines & putStrLn
pure ()