Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

various deprecations during compilation of GF #46

Closed
mengwong opened this issue Dec 13, 2019 · 2 comments · Fixed by #84
Closed

various deprecations during compilation of GF #46

mengwong opened this issue Dec 13, 2019 · 2 comments · Fixed by #84

Comments

@mengwong
Copy link
Contributor

Compiling GF the other day with GHC 8.4.4, lts-12.26, I saw some errors which perhaps call for tweaking?

> Building library for gf-3.10..
> [  1 of 163] Compiling CGI
> [  2 of 163] Compiling CGIUtils
> [  3 of 163] Compiling Cache
> [  4 of 163] Compiling Data.Binary.Builder
>
> /private/var/folders/t3/cv27h8kn7wb3xfgpgxdpk7vc0000gn/T/stack95801/gf-3.10/src/runtime/haskell/Data/Binary/Builder.hs:202:40: warning: [-Wdeprecations]
>     In the use of ‘inlinePerformIO’
>     (imported from Data.ByteString.Internal):
>     Deprecated: "If you think you know what you are doing, use 'unsafePerformIO'. If you are sure you know what you are doing, use 'unsafeDupablePerformIO'. If you enjoy sharing an address space with a malevolent agent of chaos, try 'accursedUnutterablePerformIO'."
>     |
> 202 | unsafeLiftIO f =  Builder $ \ k buf -> inlinePerformIO $ do
>     |                                        ^^^^^^^^^^^^^^^
> [  5 of 163] Compiling Data.Binary.Get
>
> /private/var/folders/t3/cv27h8kn7wb3xfgpgxdpk7vc0000gn/T/stack95801/gf-3.10/src/runtime/haskell/Data/Binary/Get.hs:417:14: warning: [-Wdeprecations]
>     In the use of ‘inlinePerformIO’
>     (imported from Data.ByteString.Internal):
>     Deprecated: "If you think you know what you are doing, use 'unsafePerformIO'. If you are sure you know what you are doing, use 'unsafeDupablePerformIO'. If you enjoy sharing an address space with a malevolent agent of chaos, try 'accursedUnutterablePerformIO'."
>     |
> 417 |     return . B.inlinePerformIO $ withForeignPtr fp $ \p -> peek (castPtr $ p `plusPtr` o)
>     |              ^^^^^^^^^^^^^^^^^


> [ 60 of 163] Compiling PGF.TypeCheck
>
> /private/var/folders/t3/cv27h8kn7wb3xfgpgxdpk7vc0000gn/T/stack95801/gf-3.10/src/runtime/haskell/PGF/TypeCheck.hs:44:1: warning: [-Wdeprecations]
>     Module ‘Control.Monad.Error’ is deprecated:
>       Use "Control.Monad.Except" instead
>    |
> 44 | import Control.Monad.Error
>    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
@inariksit
Copy link
Member

Does #71 fix this as well?

@anka-213
Copy link
Member

anka-213 commented Sep 9, 2020

No, it does not. I was thinking of fixing it, but I was unsure if I was supposed to replace inlinePerformeIO with accursedUnutterablePerformIO or some safer variant, so I left it as it was for now.

ffrixslee pushed a commit to ffrixslee/gf-core that referenced this issue Nov 10, 2020
@inariksit inariksit linked a pull request Nov 10, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants