Thread: don't infix a map lookup
This commit is contained in:
parent
106a061a8e
commit
0b1489f00e
|
@ -18,7 +18,7 @@ render pageNumber posts users = do
|
|||
|
||||
H.div ! A.class_ "row" $ do
|
||||
forM_ posts $ \post -> do
|
||||
let user = case (Post.author post) `Map.lookup` users of
|
||||
let user = case Map.lookup (Post.author post) users of
|
||||
Just u -> u
|
||||
Nothing -> error "Can't find user? Impossible state."
|
||||
|
||||
|
|
Loading…
Reference in New Issue