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

How to install the STM32Fxxx microcontroller hacking Haskell Tool in windows? #1

Open
morioskouie99 opened this issue Jun 3, 2022 · 1 comment
Assignees

Comments

@morioskouie99
Copy link

morioskouie99 commented Jun 3, 2022

Hello.
I just wanted to install the STLinkUSB. But I got this error by using runhaskell Setup.hs configure --ghc:
Warning: STLinkUSB.cabal:18:23: Packages with 'cabal-version: 1.12' or later should specify a specific version of the Cabal spec of the form 'cabal-version: x.y'. Use 'cabal-version: 1.24'. Configuring STLinkUSB-0.1.2... Setup.hs: Encountered missing or private dependencies: bytestring >=0.10 && <0.11, usb >=1.3 && <1.4, vector >=0.12 && <0.13

@morioskouie99 morioskouie99 changed the title How to install the STM32Fxxx microcontroller hacking in Haskell in widows? How to install the STM32Fxxx microcontroller hacking Haskell Tool in windows? Jun 3, 2022
@MarcFontaine MarcFontaine self-assigned this Jun 7, 2022
@MarcFontaine
Copy link
Owner

Hello.

Thank you for trying out the STM32 Haskell packages.

  • I see in the error message that you try to install the package with runhaskell.
    runhaskell is a low level tool which only installs a single package, but which cannot automatically install dependencies.
    In additon to GHC you should also install cabal-install from here https://www.haskell.org/downloads/
    and use cabal to install the package and its dependencies.

  • I have not tried the STM32 libraries with Windows. The only OS specific dependency is libusb which is available for Windows, so it should work in principle.
    https://hackage.haskell.org/package/bindings-libusb explains how to install bindings-libusb on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants