Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
zachary822 committed Nov 24, 2024
1 parent ddc00e3 commit c28026b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/Main.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}

module Main where

Expand Down Expand Up @@ -161,8 +162,7 @@ main = do

runDb
"blog"
( find (select (getPost pid) "posts") >>= M.rest
)
(find (select (getPost pid) "posts") >>= M.rest)
>>= \case
[] -> do
status status404
Expand Down Expand Up @@ -204,8 +204,8 @@ main = do
H.h2 "Tags"
H.ul $
forM_ (tags summary) $ \t -> do
let tagUrl = fromString . T.unpack $ "/posts/tags/" <> tagName t
H.li $ do
let tagUrl = fromString . T.unpack $ "/posts/tags/" <> tagName t
H.a
H.! A.href tagUrl
H.! hx PushUrl "true"
Expand Down
3 changes: 2 additions & 1 deletion dev_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ sigint_handler()

trap sigint_handler SIGINT

while true; do
while true;
do
$@ &
PID=$!
fswatch -1 app/ *.cabal
Expand Down
3 changes: 1 addition & 2 deletions haskell-blog.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ extra-doc-files: CHANGELOG.md
-- extra-source-files:

common warnings
ghc-options: -Wall -Wunused-packages
ghc-options: -Wall

executable haskell-blog
-- Import common warning flags.
Expand Down Expand Up @@ -92,7 +92,6 @@ executable haskell-blog
directory,
pandoc,
pandoc-types,
template-haskell,
unix,
time,
transformers,
Expand Down

0 comments on commit c28026b

Please sign in to comment.