問題タブ [gloss]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
0 に答える
227 参照

haskell - Using makeLens with Gloss gives "can't load framework: OpenGL (not found)"

I can install all gloss-examples and run without issues.

But when I use makelens ''Foo

It suddenly complains:

I tried with microlens and same behavior.

Why?

Below are the codes I've used:

This works. But if I uncommented the last line, it reports error during compilation.

For the cabal file(I've used the same as with other gloss-examples programs):

0 投票する
1 に答える
140 参照

haskell - メインの Haskell のどちらか

メインの :: IO() 関数で、Either モナドを返す関数を使用するのに問題があります。私は、Either を使用せずにコードを実行することができますが、現在はエラーを処理するために Either を使用しています。次のコードがあります。

したがって、解析関数が a. IO を使用して主にどちらかを処理するにはどうすればよいですか。

0 投票する
1 に答える
150 参照

haskell - グロスを使用するときに原点を左上隅にする方法はありますか

Glossを使用して Haskell で Asteroids クローンを作成しています。

画面右側で宇宙船が出たら左から戻ってくるようにしたいです。(0, 0)これは、原点が画面の中央にあるという事実によって、不必要に扱いにくくなっています。

原点を左上(または下)に移動する方法はありますか?

私のMainモジュール(とやり取りしている場所Gloss)は次のようになります。