diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-07-22 22:23:55 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-07-22 22:23:55 +0200 |
commit | c926e8a1edaf20889849b48c687f8656d45ddd7f (patch) | |
tree | 060a0ac707ae33d2bbcdfd8433e748d1ffc6a552 | |
parent | 6328deb0430668781cc44cc97ba69a1d4760a015 (diff) |
Enable OverloadedStrings in Discovery module
-rw-r--r-- | src/Erebos/Discovery.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Erebos/Discovery.hs b/src/Erebos/Discovery.hs index 2c1d409..51997fd 100644 --- a/src/Erebos/Discovery.hs +++ b/src/Erebos/Discovery.hs @@ -1,4 +1,5 @@ {-# LANGUAGE CPP #-} +{-# LANGUAGE OverloadedStrings #-} module Erebos.Discovery ( DiscoveryService(..), @@ -109,7 +110,7 @@ instance Storable DiscoveryService where DiscoveryConnectionResponse conn -> storeConnection "response" conn where - storeConnection ctype DiscoveryConnection {..} = do + storeConnection (ctype :: Text) DiscoveryConnection {..} = do storeText "connection" $ ctype either (storeRawRef "source") (storeRawWeak "source") dconnSource either (storeRawRef "target") (storeRawWeak "target") dconnTarget @@ -147,7 +148,7 @@ instance Storable DiscoveryService where , loadConnection "response" DiscoveryConnectionResponse ] where - loadConnection ctype ctor = do + loadConnection (ctype :: Text) ctor = do ctype' <- loadText "connection" guard $ ctype == ctype' dconnSource <- msum |