From fc4e9b05417a2d6257c8a6759266aa0c803de0d2 Mon Sep 17 00:00:00 2001 From: John Soo Date: Sun, 26 Jan 2020 10:52:08 -0800 Subject: [PATCH 05/34] gnu: Add ghc-rio-orphans. * gnu/packages/haskell-xyz.scm (ghc-rio-orphans): New variable. --- gnu/packages/haskell-xyz.scm | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 2ed5165f7d..c65214cfbd 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -9943,6 +9943,46 @@ expose it from another module in the hierarchy. @end itemize") (license license:expat))) +(define-public ghc-rio-orphans + (package + (name "ghc-rio-orphans") + (version "0.1.1.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/rio-orphans/rio-orphans-" + version + ".tar.gz")) + (sha256 + (base32 + "0klbshdsv3gq3l7g1d6gq2wxdqjlqxbnwk1lbg5dpbz7yrnjr3by")))) + (build-system haskell-build-system) + (inputs + `(("ghc-exceptions" ,ghc-exceptions) + ("ghc-fast-logger" ,ghc-fast-logger) + ("hspec-discover" ,hspec-discover) + ("ghc-monad-control" ,ghc-monad-control) + ("ghc-monad-logger" ,ghc-monad-logger) + ("ghc-resourcet" ,ghc-resourcet) + ("ghc-rio" ,ghc-rio) + ("ghc-transformers-base" ,ghc-transformers-base))) + (native-inputs `(("ghc-hspec" ,ghc-hspec))) + (home-page + "https://github.com/commercialhaskell/rio#readme") + (synopsis + "Orphan instances for the RIO type in the rio package") + (description + "Provides orphan instances for the RIO data type. Currently supports: + +@itemize +@item MonadCatch and MonadMask from exceptions +@item MonadBase from transformers-base +@item MonadBaseControl from monad-control +@item MonadResource from resourcet +@end itemize") + (license license:expat))) + (define-public ghc-safe (package (name "ghc-safe") -- 2.25.0