Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Commit

Permalink
Remove unused dependency on aeson.
Browse files Browse the repository at this point in the history
  • Loading branch information
koral committed Jun 26, 2015
1 parent 2825ee1 commit 161fcdb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion hbro.cabal
Expand Up @@ -22,7 +22,6 @@ Source-repository head

Library
Build-depends:
aeson,
base == 4.*,
bytestring,
classy-prelude >= 0.12,
Expand Down
9 changes: 0 additions & 9 deletions library/Network/URI/Extended.hs
Expand Up @@ -13,19 +13,10 @@ module Network.URI.Extended
import Hbro.Error
import Hbro.Prelude

import Data.Aeson

import Network.URI as X hiding (parseURI, parseURIReference)
import qualified Network.URI as N
-- }}}

instance FromJSON URI where
parseJSON (String t) = maybe mzero return $ parseURIReference t
parseJSON _ = mzero

instance ToJSON URI where
toJSON = String . tshow

-- | Generalized version of 'N.parseURIReference'.
parseURIReference :: (MonadThrow m) => Text -> m URI
parseURIReference uri = N.parseURIReference (unpack uri) `failWith` InvalidUri uri
Expand Down

0 comments on commit 161fcdb

Please sign in to comment.