From c439b4d7191df07dc57614ca5b09ce545ab5f88f Mon Sep 17 00:00:00 2001 From: austin-artificial <126663376+austin-artificial@users.noreply.github.com> Date: Mon, 20 Jan 2025 15:34:29 +0000 Subject: [PATCH] Add `IO.Handle` as type (#83) * expose `Handle` type so that we can pass a handle around in a record * increase base upper bound in `package.yaml` --- hell.cabal | 2 +- package.yaml | 2 +- src/Hell.hs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hell.cabal b/hell.cabal index f447e21..e449c51 100644 --- a/hell.cabal +++ b/hell.cabal @@ -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 diff --git a/package.yaml b/package.yaml index 33e7bde..5a64f51 100644 --- a/package.yaml +++ b/package.yaml @@ -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 diff --git a/src/Hell.hs b/src/Hell.hs index 4091f91..c569cae 100644 --- a/src/Hell.hs +++ b/src/Hell.hs @@ -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)),