Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ jobs:
strategy:
matrix:
include:
- { cabal: "3.12", os: ubuntu-latest, ghc: "9.2.8" }
- { cabal: "3.12", os: ubuntu-latest, ghc: "9.4.8" }
- { cabal: "3.12", os: ubuntu-latest, ghc: "9.6.6" }
- { cabal: "3.12", os: ubuntu-latest, ghc: "9.8.2" }
- { cabal: "3.12", os: ubuntu-latest, ghc: "9.10.1" }
- { cabal: "3.14", os: ubuntu-latest, ghc: "9.2.8" }
- { cabal: "3.14", os: ubuntu-latest, ghc: "9.4.8" }
- { cabal: "3.14", os: ubuntu-latest, ghc: "9.6.6" }
- { cabal: "3.14", os: ubuntu-latest, ghc: "9.8.4" }
- { cabal: "3.14", os: ubuntu-latest, ghc: "9.10.2" }
- { cabal: "3.14", os: ubuntu-latest, ghc: "9.12.2" }
fail-fast: false
steps:
# ----------------
Expand All @@ -38,7 +39,7 @@ jobs:
name: Cache ~/.cabal/store
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}--${{ github.Shah }}
key: ${{ runner.os }}-${{ matrix.ghc }}--
# ----------------
- name: Versions
run: |
Expand Down
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.2.0.1 [XXX]
----------------
* Documentation fixes

0.2 [2025.05.04]
----------------
* `FromPy`/`ToPy` instances added for: `Complex`, both strict and lazy `Text` &
Expand Down
10 changes: 9 additions & 1 deletion inline-python.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Cabal-Version: 3.0
Build-Type: Simple

Name: inline-python
Version: 0.2
Version: 0.2.0.1
Synopsis: Python interpreter embedded into haskell.
Description:
This package embeds python interpreter into haskell program and
Expand All @@ -23,6 +23,14 @@ extra-source-files:
include/inline-python.h
py/bound-vars.py

Tested-With:
GHC == 9.2.8
GHC == 9.4.8
GHC == 9.6.7
GHC == 9.8.4
GHC == 9.10.2
GHC == 9.12.2

source-repository head
type: git
location: http://github.com/Shimuuar/inline-python
Expand Down
3 changes: 2 additions & 1 deletion src/Python/Inline.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- python code in haskell programs. Take for example following program:
--
-- > {-# LANGUAGE QuasiQuotes #-}
-- > import Control.Monad
-- > import Python.Inline
-- > import Python.Inline.QQ
-- >
Expand All @@ -10,7 +11,7 @@
-- > let input = [1..10] :: [Int]
-- > let square :: Int -> Py Int
-- > square x = pure (x * x)
-- > print =<< runPy $ do
-- > print <=< runPy $ do
-- > fromPy' @[Int] =<< [pye| [ square_hs(x) for x in input_hs ] |]
--
-- Quasiquotation 'Python.Inline.QQ.pye' captures variables @input@
Expand Down
Loading