summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-10-27 17:39:30 -0400
committerjoe <joe@jerkface.net>2017-10-27 17:39:30 -0400
commite2e69ffc55abdd6df9e6f328ee867d8ed6639322 (patch)
tree319cd538e88ade2138d7614f6d5235edeb384feb /examples
parent50d3bb1fc90c4d83d390fa2c5b328935d0ffed1d (diff)
Added TODO regarding Tox "Hardening" message.
Diffstat (limited to 'examples')
-rw-r--r--examples/dhtd.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index ea2b3459..9966fb32 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -164,6 +164,7 @@ loadNodes netname = do
164 >>= maybe (ioError $ userError "Nothing") return 164 >>= maybe (ioError $ userError "Nothing") return
165 either (const $ fallbackLoad fname) return attempt 165 either (const $ fallbackLoad fname) return attempt
166 166
167fallbackLoad :: FromJSON t => FilePath -> IO [t]
167fallbackLoad fname = do 168fallbackLoad fname = do
168 attempt <- tryIOError $ do 169 attempt <- tryIOError $ do
169 J.decode <$> L.readFile fname 170 J.decode <$> L.readFile fname