Skip to content

Commit

Permalink
Add IO.Handle as type (#83)
Browse files Browse the repository at this point in the history
* expose `Handle` type

so that we can pass a handle around in a record

* increase base upper bound in `package.yaml`
  • Loading branch information
austin-artificial authored Jan 20, 2025
1 parent 28452e9 commit c439b4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hell.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.36.0.
-- This file has been generated from package.yaml by hpack version 0.37.0.
--
-- see: https://github.com/sol/hpack

Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ author: "Chris Done"
copyright: "2023 Chris Done"
synopsis: "Haskell-based shell scripting language"
dependencies:
- base >= 4.17.2.1 && < 4.18
- base >= 4.17.2.1 && < 4.19
- haskell-src-exts
- ghc-prim
- containers
Expand Down
1 change: 1 addition & 0 deletions src/Hell.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1165,6 +1165,7 @@ supportedTypeConstructors =
("Tree", SomeTypeRep $ typeRep @Tree),
("Value", SomeTypeRep $ typeRep @Value),
("()", SomeTypeRep $ typeRep @()),
("Handle", SomeTypeRep $ typeRep @IO.Handle),

-- Internal, hidden types
("hell:Hell.NilL", SomeTypeRep $ typeRep @('NilL)),
Expand Down

0 comments on commit c439b4d

Please sign in to comment.