Skip to content

Commit 9a1644c

Browse files
author
Ryan Scott
committed
Note that logfloat works in Windows GHCi as of 8.0
Ignore-this: 5843c3353fc6aaa4d55dfbc2d3d19ae4 darcs-hash:335891784bec157025c9b6b8c30189025b588b42
1 parent 92637ae commit 9a1644c

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
logfloat
22
========
3-
[![Hackage version](https://img.shields.io/hackage/v/logfloat.svg?style=flat)](https://hackage.haskell.org/package/logfloat)
3+
[![Hackage version](https://img.shields.io/hackage/v/logfloat.svg?style=flat)](https://hackage.haskell.org/package/logfloat)
44
[![Hackage-Deps](https://img.shields.io/hackage-deps/v/logfloat.svg?style=flat)](http://packdeps.haskellers.com/specific?package=logfloat)
5-
[![TravisCI Build Status](https://img.shields.io/travis/wrengr/logfloat.svg?style=flat)](https://travis-ci.org/wrengr/logfloat)
5+
[![TravisCI Build Status](https://img.shields.io/travis/wrengr/logfloat.svg?style=flat)](https://travis-ci.org/wrengr/logfloat)
66
[![CircleCI Build Status](https://circleci.com/gh/wrengr/logfloat.svg?style=shield&circle-token=b57517657c556be6fd8fca92b843f9e4cffaf8d1)](https://circleci.com/gh/wrengr/logfloat)
77

88
This package provides a type for storing numbers in the log-domain,
@@ -35,11 +35,11 @@ of the following standard installation methods:
3535

3636
-- With cabal-install and without the source:
3737
$> cabal install logfloat
38-
38+
3939
-- With cabal-install and with the source already:
4040
$> cd logfloat
4141
$> cabal install
42-
42+
4343
-- Without cabal-install, but with the source already:
4444
$> cd logfloat
4545
$> runhaskell Setup.hs configure --user
@@ -77,14 +77,15 @@ bug report (which is resolved in GHC 6.10.2):
7777

7878
### Windows FFI
7979

80-
The logfloat package builds and installs cleanly with GHC on Windows
81-
(without needing Cygwin nor Mingw/Msys), and the installed package
82-
can be used in compiled programs without any issues.
80+
The logfloat package builds and installs cleanly with GHC 8.0 and
81+
later on Windows (without needing Cygwin nor Mingw/Msys), and the
82+
installed package can be used in compiled programs without any
83+
issues.
8384

84-
However, by default, the package does not work from the GHCi debugger
85-
and gives errors like "can't load .so/.DLL for: m (addDLL: could
86-
not load DLL)". This is a long-standing issue with GHCi having to
87-
do with the fact that, on Windows, the so-called "libm" file does
85+
Prior to GHC 8.0, the package does not work from the GHCi debugger
86+
by default and gives errors like "can't load .so/.DLL for: m (addDLL:
87+
could not load DLL)". This is a long-standing issue with GHCi having
88+
to do with the fact that, on Windows, the so-called "libm" file does
8889
not actually contain anything (as it does on POSIX) and the C
8990
functions we use are instead placed in `libmingwex.a` (which comes
9091
bundled with GHC). The problem is that `ghc` (the compiler) knows
@@ -168,7 +169,7 @@ If you need to disable the FFI due to issues with not being able
168169
to find <math.h>, not having prototypes for functions, or linking
169170
errors, be sure *not* to pass -D__USE_FFI__ to the cpp filter for
170171
ffihugs.
171-
172+
172173
Notably, Hugs installs cpphs under the name "cpphs-hugs" by default.
173174
The `which` command will try to resolve the location, assuming it's
174175
on your $PATH. If it isn't, then change the --with-cpphs= flag to

0 commit comments

Comments
 (0)