Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoog committed Jun 14, 2024
1 parent 92618ef commit 156f52f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Main.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module Main where

import Control.Concurrent.Async (mapConcurrently_)
import Control.Monad
import Data.ByteString.Lazy (ByteString)
import Data.ByteString.Lazy qualified as L
Expand Down Expand Up @@ -54,7 +53,7 @@ handleArgs ["fetch"] = do
, "546" -- NYC East Village
, "452" -- Austin Seaholm
]
mapConcurrently_ (scrapeStore conn) stores
mapM_ (scrapeStore conn) stores
printlog "done"
changeCount <- SQL.totalChanges conn
printlog $ "changed rows: " <> show changeCount
Expand Down
11 changes: 6 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@
nixpkgs-fmt haskellPackages.fourmolu nodePackages.sql-formatter
]}
nixpkgs-fmt .
fourmolu --mode inplace --indentation=2 $(git ls-files '*.hs')
fourmolu --mode inplace $(git ls-files '*.hs')
for file in $(git ls-files "*.sql"); do
sql-formatter --fix $file
done
'';
in
rec {
{
inherit formatter;
packages.default = pkgs.haskellPackages.callCabal2nix "traderjoes" ./. { };
devShells.default = with pkgs; mkShell {
inputsFrom = [ packages.default.env ];
packages = [
devShells.default = pkgs.mkShell {
inputsFrom = [ self.packages.${system}.default.env ];
packages = with pkgs; [
cabal-install
haskell-language-server
haskellPackages.fourmolu
hlint
nodePackages.wrangler
sqlite
Expand Down
1 change: 1 addition & 0 deletions fourmolu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
indentation: 2

0 comments on commit 156f52f

Please sign in to comment.