you can add stuff to your homepage? cool!
xpika / hgl Goto Github PK
View Code? Open in Web Editor NEWhaskell graphics library
License: Other
haskell graphics library
License: Other
you can add stuff to your homepage? cool!
If I compile HGL-3.2.3.1
with GHC 8.4 or later, I get the following error:
$ cabal new-install HGL -j1
Resolving dependencies...
Build profile: -w ghc-8.6.2 -O1
In order, the following will be built (use -v for more details):
- HGL-3.2.3.1 (lib:HGL) (requires build)
Warning: HGL.cabal:10:2: Tabs used as indentation at 10:2, 11:2, 12:2, 13:2,
14:2, 15:2, 16:2, 17:2
Configuring HGL-3.2.3.1...
Preprocessing library for HGL-3.2.3.1..
Building library for HGL-3.2.3.1..
[ 1 of 27] Compiling Graphics.HGL.Internals.Flag ( Graphics/HGL/Internals/Flag.hs, dist/build/Graphics/HGL/Internals/Flag.o )
Graphics/HGL/Internals/Flag.hs:17:1: warning: [-Wtabs]
Tab character found here, and in three further locations.
Please use spaces instead.
|
17 | ( Flag, newFlag, setFlag, resetFlag
| ^^^^^^^^
[ 2 of 27] Compiling Graphics.HGL.Internals.Types ( Graphics/HGL/Internals/Types.hs, dist/build/Graphics/HGL/Internals/Types.o )
Graphics/HGL/Internals/Types.hs:63:9: warning: [-Wtabs]
Tab character found here, and in 26 further locations.
Please use spaces instead.
|
63 | | Dash -- "-------"
| ^^^^^^^^
[ 3 of 27] Compiling Graphics.HGL.Internals.Utilities ( Graphics/HGL/Internals/Utilities.hs, dist/build/Graphics/HGL/Internals/Utilities.o )
Graphics/HGL/Internals/Utilities.hs:17:1: warning: [-Wtabs]
Tab character found here, and in three further locations.
Please use spaces instead.
|
17 | bracket, bracket_,
| ^^^^^^^^
[ 4 of 27] Compiling Graphics.HGL.Units ( Graphics/HGL/Units.hs, dist/build/Graphics/HGL/Units.o )
Graphics/HGL/Units.hs:16:1: warning: [-Wtabs]
Tab character found here, and in four further locations.
Please use spaces instead.
|
16 | ( Point
| ^^^^^^^^
[ 5 of 27] Compiling Graphics.HGL.X11.Display ( Graphics/HGL/X11/Display.hs, dist/build/Graphics/HGL/X11/Display.o )
Graphics/HGL/X11/Display.hs:3:1: warning: [-Wtabs]
Tab character found here, and in four further locations.
Please use spaces instead.
|
3 | ( getDisplayName
| ^^^^^^^^
[ 6 of 27] Compiling Graphics.HGL.X11.Timer ( Graphics/HGL/X11/Timer.hs, dist/build/Graphics/HGL/X11/Timer.o )
Graphics/HGL/X11/Timer.hs:17:1: warning: [-Wtabs]
Tab character found here, and in two further locations.
Please use spaces instead.
|
17 | ( Timer, new, stop
| ^^^^^^^^
[ 7 of 27] Compiling Graphics.HGL.X11.Types ( Graphics/HGL/X11/Types.hs, dist/build/Graphics/HGL/X11/Types.o )
Graphics/HGL/X11/Types.hs:17:1: warning: [-Wtabs]
Tab character found here, and in 7 further locations.
Please use spaces instead.
|
17 | ( DC(..)
| ^^^^^^^^
[ 8 of 27] Compiling Graphics.HGL.Key ( Graphics/HGL/Key.hs, dist/build/Graphics/HGL/Key.o )
Graphics/HGL/Key.hs:16:1: warning: [-Wtabs]
Tab character found here, and in 79 further locations.
Please use spaces instead.
|
16 | ( Key -- Abstract!
| ^^^^^^^^
[ 9 of 27] Compiling Graphics.HGL.Internals.Event ( Graphics/HGL/Internals/Event.hs, dist/build/Graphics/HGL/Internals/Event.o )
Graphics/HGL/Internals/Event.hs:17:1: warning: [-Wtabs]
Tab character found here, and in 39 further locations.
Please use spaces instead.
|
17 | ( Event(..)
| ^^^^^^^^
[10 of 27] Compiling Graphics.HGL.Internals.Events ( Graphics/HGL/Internals/Events.hs, dist/build/Graphics/HGL/Internals/Events.o )
Graphics/HGL/Internals/Events.hs:23:68: error:
Module ‘Control.Concurrent.Chan’ does not export ‘isEmptyChan’
|
23 | import Control.Concurrent.Chan(Chan, newChan, readChan, writeChan, isEmptyChan)
| ^^^^^^^^^^^
Warning: Some package(s) failed to build. Try rerunning with -j1 if you can't
see the error.
This is because isEmptyChan
(which had long been deprecated) was finally removed in GHC 8.4. Is it possible to fix this?
When I attempt it, I get this:
Building HGL-3.2.3.2 (all, legacy fallback)
Failed to build HGL-3.2.3.2.
Build log (
C:\Users\em162098\AppData\Roaming\cabal\logs\ghc-8.6.5\HGL-3.2.3.2-2d71f522644a0868a24a1353919ea3bb88e6662e.log
):
Preprocessing library for HGL-3.2.3.2..
Building library for HGL-3.2.3.2..
[ 1 of 26] Compiling Graphics.HGL.Internals.Flag ( Graphics\HGL\Internals\Flag.hs, dist\build\Graphics\HGL\Internals\Flag.o )
Graphics\HGL\Internals\Flag.hs:17:1: warning: [-Wtabs]
Tab character found here, and in three further locations.
Please use spaces instead.
|
17 | ( Flag, newFlag, setFlag, resetFlag
| ^^^^^^^^
[ 2 of 26] Compiling Graphics.HGL.Internals.Types ( Graphics\HGL\Internals\Types.hs, dist\build\Graphics\HGL\Internals\Types.o )
Graphics\HGL\Internals\Types.hs:63:9: warning: [-Wtabs]
Tab character found here, and in 26 further locations.
Please use spaces instead.
|
63 | | Dash -- "-------"
| ^^^^^^^^
[ 3 of 26] Compiling Graphics.HGL.Internals.Utilities ( Graphics\HGL\Internals\Utilities.hs, dist\build\Graphics\HGL\Internals\Utilities.o )
Graphics\HGL\Internals\Utilities.hs:17:1: warning: [-Wtabs]
Tab character found here, and in three further locations.
Please use spaces instead.
|
17 | bracket, bracket_,
| ^^^^^^^^
[ 4 of 26] Compiling Graphics.HGL.Units ( Graphics\HGL\Units.hs, dist\build\Graphics\HGL\Units.o )
Graphics\HGL\Units.hs:16:1: warning: [-Wtabs]
Tab character found here, and in four further locations.
Please use spaces instead.
|
16 | ( Point
| ^^^^^^^^
[ 5 of 26] Compiling Graphics.HGL.Win32.Types ( Graphics\HGL\Win32\Types.hs, dist\build\Graphics\HGL\Win32\Types.o )
Graphics\HGL\Win32\Types.hs:3:1: warning: [-Wtabs]
Tab character found here, and in six further locations.
Please use spaces instead.
|
3 | ( toDimension, fromDimension
| ^^^^^^^^
[ 6 of 26] Compiling Graphics.HGL.Key ( Graphics\HGL\Key.hs, dist\build\Graphics\HGL\Key.o )
Graphics\HGL\Key.hs:16:1: warning: [-Wtabs]
Tab character found here, and in 79 further locations.
Please use spaces instead.
|
16 | ( Key -- Abstract!
| ^^^^^^^^
[ 7 of 26] Compiling Graphics.HGL.Internals.Event ( Graphics\HGL\Internals\Event.hs, dist\build\Graphics\HGL\Internals\Event.o )
Graphics\HGL\Internals\Event.hs:17:1: warning: [-Wtabs]
Tab character found here, and in 39 further locations.
Please use spaces instead.
|
17 | ( Event(..)
| ^^^^^^^^
[ 8 of 26] Compiling Graphics.HGL.Internals.Events ( Graphics\HGL\Internals\Events.hs, dist\build\Graphics\HGL\Internals\Events.o )
Graphics\HGL\Internals\Events.hs:17:1: warning: [-Wtabs]
Tab character found here, and in one further location.
Please use spaces instead.
|
17 | Events, newEvents, getEvent, sendEvent, isNoEvent,
| ^^^^^^^^
[ 9 of 26] Compiling Graphics.HGL.Internals.Draw ( Graphics\HGL\Internals\Draw.hs, dist\build\Graphics\HGL\Internals\Draw.o )
Graphics\HGL\Internals\Draw.hs:17:1: warning: [-Wtabs]
Tab character found here, and in 34 further locations.
Please use spaces instead.
|
17 | ( Graphic -- = Draw ()
| ^^^^^^^^
[10 of 26] Compiling Graphics.HGL.Win32.Draw ( Graphics\HGL\Win32\Draw.hs, dist\build\Graphics\HGL\Win32\Draw.o )
Graphics\HGL\Win32\Draw.hs:3:1: warning: [-Wtabs]
Tab character found here, and in six further locations.
Please use spaces instead.
|
3 | ( DrawFun, drawGraphic, drawBufferedGraphic, drawBufferedGraphicBC
| ^^^^^^^^
[11 of 26] Compiling Graphics.HGL.Win32.Bitmap ( Graphics\HGL\Win32\Bitmap.hs, dist\build\Graphics\HGL\Win32\Bitmap.o )
Graphics\HGL\Win32\Bitmap.hs:3:1: warning: [-Wtabs]
Tab character found here, and in 17 further locations.
Please use spaces instead.
|
3 | ( Bitmap
| ^^^^^^^^
[12 of 26] Compiling Graphics.HGL.Draw.Monad ( Graphics\HGL\Draw\Monad.hs, dist\build\Graphics\HGL\Draw\Monad.o )
Graphics\HGL\Draw\Monad.hs:16:1: warning: [-Wtabs]
Tab character found here, and in 9 further locations.
Please use spaces instead.
|
16 | ( Graphic -- = Draw ()
| ^^^^^^^^
[13 of 26] Compiling Graphics.HGL.Draw.Text ( Graphics\HGL\Draw\Text.hs, dist\build\Graphics\HGL\Draw\Text.o )
Graphics\HGL\Draw\Text.hs:17:1: warning: [-Wtabs]
Tab character found here, and in 27 further locations.
Please use spaces instead.
|
17 | -- * Drawing text
| ^^^^^^^^
[14 of 26] Compiling Graphics.HGL.Draw.Brush ( Graphics\HGL\Draw\Brush.hs, dist\build\Graphics\HGL\Draw\Brush.o )
Graphics\HGL\Draw\Brush.hs:16:1: warning: [-Wtabs]
Tab character found here, and in 7 further locations.
Please use spaces instead.
|
16 | ( Brush
| ^^^^^^^^
[15 of 26] Compiling Graphics.HGL.Draw.Region ( Graphics\HGL\Draw\Region.hs, dist\build\Graphics\HGL\Draw\Region.o )
Graphics\HGL\Draw\Region.hs:16:1: warning: [-Wtabs]
Tab character found here, and in 25 further locations.
Please use spaces instead.
|
16 | ( Region
| ^^^^^^^^
[16 of 26] Compiling Graphics.HGL.Draw.Picture ( Graphics\HGL\Draw\Picture.hs, dist\build\Graphics\HGL\Draw\Picture.o )
Graphics\HGL\Draw\Picture.hs:16:1: warning: [-Wtabs]
Tab character found here, and in 22 further locations.
Please use spaces instead.
|
16 | ( arc, ellipse, shearEllipse
| ^^^^^^^^
[17 of 26] Compiling Graphics.HGL.Draw.Pen ( Graphics\HGL\Draw\Pen.hs, dist\build\Graphics\HGL\Draw\Pen.o )
Graphics\HGL\Draw\Pen.hs:25:1: warning: [-Wtabs]
Tab character found here, and in 14 further locations.
Please use spaces instead.
|
25 | ( Pen
| ^^^^^^^^
[18 of 26] Compiling Graphics.HGL.Draw.Font ( Graphics\HGL\Draw\Font.hs, dist\build\Graphics\HGL\Draw\Font.o )
Graphics\HGL\Draw\Font.hs:26:1: warning: [-Wtabs]
Tab character found here, and in 36 further locations.
Please use spaces instead.
|
26 | ( Font
| ^^^^^^^^
[19 of 26] Compiling Graphics.HGL.Draw ( Graphics\HGL\Draw.hs, dist\build\Graphics\HGL\Draw.o )
Graphics\HGL\Draw.hs:16:1: warning: [-Wtabs]
Tab character found here, and in 16 further locations.
Please use spaces instead.
|
16 | (
| ^^^^^^^^
[20 of 26] Compiling Graphics.HGL.Win32.WND ( Graphics\HGL\Win32\WND.hs, dist\build\Graphics\HGL\Win32\WND.o )
Graphics\HGL\Win32\WND.hs:243:37: error:
* Couldn't match type `Foreign.C.Types.CIntPtr'
with `GHC.Int.Int32'
Expected type: LONG
Actual type: LPARAM
* In the expression: x
In the first argument of `toPoint', namely `(x, y)'
In the `pt' field of a record
|
243 | send (Button {pt = toPoint (x,y), isLeft=isLeft, isDown=isDown})
| ^
Graphics\HGL\Win32\WND.hs:243:39: error:
* Couldn't match type `Foreign.C.Types.CIntPtr'
with `GHC.Int.Int32'
Expected type: LONG
Actual type: LPARAM
* In the expression: y
In the first argument of `toPoint', namely `(x, y)'
In the `pt' field of a record
|
243 | send (Button {pt = toPoint (x,y), isLeft=isLeft, isDown=isDown})
| ^
Graphics\HGL\Win32\WND.hs:248:36: error:
* Couldn't match type `Word' with `GHC.Word.Word32'
Expected type: VKey
Actual type: WPARAM
* In the first argument of `MkKey', namely `wParam'
In the `keysym' field of a record
In the first argument of `send', namely
`(Key {keysym = MkKey wParam, isDown = isDown})'
|
248 | send (Key { keysym = MkKey wParam, isDown = isDown })
| ^^^^^^
Graphics\HGL\Win32\WND.hs:260:41: error:
* Couldn't match type `Foreign.C.Types.CIntPtr'
with `GHC.Int.Int32'
Expected type: LONG
Actual type: LPARAM
* In the expression: x
In the first argument of `toPoint', namely `(x, y)'
In the `pt' field of a record
|
260 | send (MouseMove { pt = toPoint (x,y) })
| ^
Graphics\HGL\Win32\WND.hs:260:43: error:
* Couldn't match type `Foreign.C.Types.CIntPtr'
with `GHC.Int.Int32'
Expected type: LONG
Actual type: LPARAM
* In the expression: y
In the first argument of `toPoint', namely `(x, y)'
In the `pt' field of a record
|
260 | send (MouseMove { pt = toPoint (x,y) })
| ^
cabal.exe: Failed to build HGL-3.2.3.2 (which is required by exe:AutoMark from
AutoMark-1.0.0.0). See the build log above for details.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.