j 0.2.2.0 → 0.3.0.0
raw patch · 5 files changed
+22/−14 lines, 5 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- Language.J: profLinux :: ByteString -> ByteString
Files
- CHANGELOG.md +5/−0
- LICENSE +1/−1
- j.cabal +9/−9
- src/Language/J.hs +6/−3
- test/Spec.hs +1/−1
CHANGELOG.md view
@@ -1,5 +1,10 @@ # j +## 0.3.0.0++ * `libMac` works with new path for J 9.02+ * Remove undocumented `profLinux` function.+ ## 0.2.2.0 * Add `tryIntVect` and `copyIntVect`
LICENSE view
@@ -1,4 +1,4 @@-Copyright Vanessa McHale (c) 2020+Copyright Vanessa McHale (c) 2020-2021 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
j.cabal view
@@ -1,9 +1,9 @@ cabal-version: 1.18 name: j-version: 0.2.2.0+version: 0.3.0.0 license: BSD3 license-file: LICENSE-copyright: Copyright: (c) 2020 Vanessa McHale+copyright: Copyright: (c) 2020-2021 Vanessa McHale maintainer: vamchale@gmail.com author: Vanessa McHale synopsis: J in Haskell@@ -34,10 +34,10 @@ build-depends: unix >=2.7.0.0 else- build-depends: Win32 -any+ build-depends: Win32 if !impl(ghc >=8.0)- build-depends: semigroups -any+ build-depends: semigroups if impl(ghc >=8.0) ghc-options:@@ -62,11 +62,11 @@ ghc-options: "-with-rtsopts -K1K" -Wall build-depends: base >=4.9,- j -any,- tasty -any,- tasty-hunit -any,- repa -any,- bytestring -any+ j,+ tasty,+ tasty-hunit,+ repa,+ bytestring if impl(ghc >=8.0) ghc-options:
src/Language/J.hs view
@@ -81,7 +81,6 @@ #ifndef mingw32_HOST_OS , libLinux , libMac- , profLinux #else , libWindows #endif@@ -167,9 +166,9 @@ libLinux :: RawFilePath libLinux = "/usr/lib/" <> ASCII.pack arch <> "-linux-gnu/libj.so" --- | Expected 'RawFilePath' to the library on Mac.+-- | Expected 'RawFilePath' to the library (@libj.dylib@) on Mac libMac :: JVersion -> RawFilePath-libMac v = "/Applications/j64-" <> squashVersionBS v <> "/bin/libj.dylib"+libMac v = "/Applications/j" <> squashVersionBS v <> "/bin/libj.dylib" #else -- | @since 0.1.1.0 libWindows :: JVersion -> FilePath@@ -304,11 +303,15 @@ -- Throws a 'JErr' on type error. -- -- \( O(n) \)+--+-- @since 0.2.2.0 tryIntVect :: JData R.DIM1 -> V.Vector Int tryIntVect (JIntArr arr) = R.toUnboxed (R.copyS $ R.map fromIntegral arr) tryIntVect _ = throw TypeError -- | \( O(n) \)+--+-- @since 0.2.2.0 copyIntVect :: V.Vector Int -> JData R.DIM1 copyIntVect = JIntArr . R.copyS . R.map fromIntegral . (\v -> R.fromUnboxed (R.ix1 $ V.length v) v)
test/Spec.hs view
@@ -18,7 +18,7 @@ jenv <- jinit libLinux #else #ifdef darwin_HOST_OS- jenv <- jinit (libMac [8,0,7])+ jenv <- jinit (libMac [9,0,2]) #else #ifdef mingw32_HOST_OS jenv <- jinit (libWindows [9,0,2])