Convert grocery list to an .org file

Ensure that the export.hs script refers to the .org file.
This commit is contained in:
William Carroll 2020-07-01 10:45:28 +01:00
parent ee1aeee5f8
commit 011f7aeaec
2 changed files with 15 additions and 18 deletions

View file

@ -6,6 +6,6 @@ import qualified Data.List as L
-- | Run this to export the grocery list.
main :: IO ()
main = do
x <- readFile "./list.txt"
x <- readFile "./list.org"
x & lines & filter (not . L.isPrefixOf "- 0x") & unlines & putStrLn
pure ()

View file

@ -2,12 +2,11 @@
- 1x beer (6x)
* Produce
- 1x brocoli
- 0x green beans
- 1x spagel (10x)
- 1x green beans
- 1x green asparagus
- 1x lettuce
- 1x tomatoes
- 0x zucchini
- 1x zucchini
- 3x lemons (3x)
- 0x shallots (10x)
- 0x garlic
@ -15,21 +14,21 @@
- 0x basil plant
* Pasta
- 0x linguini pasta
- 4x tortellini / ravioli
- 0x tomato sauce
- 3x tortellini / ravioli
- 1x tomato sauce
- 0x pesto
* Oil
- 0x olive oil
- 0x coconut oil
- 1x coconut oil
* Condiments
- 0x Tabasco
- 1x Tabasco
- 0x senf
- 0x ketchup
* Nuts
- 2x almonds
- 0x walnuts
* Bread
- 0x GF bread
- 1x GF bread
- 0x flour
* Sugar
- 1x Lindt chocolate
@ -42,21 +41,19 @@
- 2x gouda
- 1x mystery cheese
* Meat
- 0x ham for asparagus
- 1x fleischwurst
- 1x bacon bits
- 0x fleischwurst
- 0x bacon bits
- 0x jar Weiner Wurstel
- 1x bratwurst (4x)
* Wine
- 0x red wine
- 2x white wine
* Miscellaneous
- 0x hollandaise sauce
- 0x coffee
- 0x coffee filters
- 1x bug spray
- 0x bug spray
- 1x 30 SPF sun screen
- 1x tiki torch
- 1x dish soap
- 1x paper towels (6x)
- 1x Brita
- 0x tiki torch
- 0x dish soap
- 0x paper towels (6x)
- 0x Brita