You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- agdamoduleTestwhereopen importHaskell.Data.ByteStringusing (ByteString)
test : ByteString → ByteString
test x = x
{-# COMPILE AGDA2HS test #-}
the transpilation output is
-- HaskellmoduleTestwheretest::ByteString->ByteString
test x = x
This is not what I had in mind, though — I was hoping that the transpilation output would include the import statement.
importData.ByteString (ByteString)
As a workaround, I can add this import manually with FOREIGN AGDA2HS in the module Test, but this module is not the right place — ideally, I should be able to specify in Haskell.Data.ByteString that the postulated ByteString type is a Haskell identifier that comes from the module Data.ByteString.
The text was updated successfully, but these errors were encountered:
I would like to import an external Haskell module, say,
Data.ByteString
. However, I am unable to generate the corresponding Haskellimport
statement.More specifically: After #379 , I can create an Agda wrapper module
Haskell.Data.ByteString
However, when using this module, say, as
the transpilation output is
This is not what I had in mind, though — I was hoping that the transpilation output would include the import statement.
As a workaround, I can add this import manually with
FOREIGN AGDA2HS
in the moduleTest
, but this module is not the right place — ideally, I should be able to specify inHaskell.Data.ByteString
that the postulatedByteString
type is a Haskell identifier that comes from the moduleData.ByteString
.The text was updated successfully, but these errors were encountered: