summaryrefslogtreecommitdiff
path: root/provider/posts/beuteltier-3.md
diff options
context:
space:
mode:
Diffstat (limited to 'provider/posts/beuteltier-3.md')
-rw-r--r--provider/posts/beuteltier-3.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/provider/posts/beuteltier-3.md b/provider/posts/beuteltier-3.md
index 79e105a..9b699c1 100644
--- a/provider/posts/beuteltier-3.md
+++ b/provider/posts/beuteltier-3.md
@@ -8,7 +8,7 @@ I commited a change to `beuteltier/Beuteltier/Types/Util.hs` ("[…] Hashable up
8replaced the `Hashable` instances for `Object` and `MetaData` with a single, better 8replaced the `Hashable` instances for `Object` and `MetaData` with a single, better
9optimized function: 9optimized function:
10 10
11~~~ {.haskell .numberLines} 11~~~ {.haskell}
12objHash :: Applicative f => ObjectGen f -> f Int 12objHash :: Applicative f => ObjectGen f -> f Int
13-- ^ Two 'ObjectGen's hashes are a first indication of whether they are 'Equivalent' 13-- ^ Two 'ObjectGen's hashes are a first indication of whether they are 'Equivalent'
14objHash o = fmap hash $ (,) <$> (Set.toList . (^. mTags) <$> o ^. oMeta) <*> (Map.keys <$> o ^. oContent) 14objHash o = fmap hash $ (,) <$> (Set.toList . (^. mTags) <$> o ^. oMeta) <*> (Map.keys <$> o ^. oContent)