Git Product home page Git Product logo

Comments (5)

Mistuke avatar Mistuke commented on July 16, 2024

Hmm that looks like a program or configuration error. You've somehow ended up in withHandleToHANDLEPosix that's a program bug. Posix handles aren't defined in WinIO.

Since temporary does not have a dependency on Win32 the issue must be in one of it's dependencies. It looks like something is either calling withHandleToHANDLEPosix or is calling withHandleToHANDLE on a version of Win32 without WinIO support.

from win32.

hasufell avatar hasufell commented on July 16, 2024

It's depending on base: https://gitlab.haskell.org/ghc/ghc/-/blob/3d5cb3352c1e1c20f0d5de427f4edbc765ce06d6/libraries/base/System/IO.hs#L500

from win32.

Mistuke avatar Mistuke commented on July 16, 2024

I do not follow. Base doesn't call into Win32 to create handles. It has its own routines to do so.

The code in base handles the IO manager switch itself

findTempName = findTempNamePosix <!> findTempNameWinIO

And does not enter the posix code. If it did the compiler wouldn't bootstrap and nothing using WinIO would work.

from win32.

Mistuke avatar Mistuke commented on July 16, 2024

Turns out it is a Win32 bug, a typo has caused the CPP macro to go missing in the one place that wouldn't cause a build failure.

I'll do some backport tomorrow to make a 2.10.0.1 which cabal should be able to use for a fix.

from win32.

hasufell avatar hasufell commented on July 16, 2024

nice find

from win32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.