Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mwotton/try-dequeue
https://github.com/mwotton/try-dequeue
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mwotton/try-dequeue
- Owner: mwotton
- License: bsd-3-clause
- Created: 2018-05-23T13:47:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-23T13:47:14.000Z (over 6 years ago)
- Last Synced: 2024-10-27T18:28:00.417Z (3 months ago)
- Language: Haskell
- Size: 5.86 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# try-dequeue
I have been trying to use [Dequeue](http://hackage.haskell.org/package/dequeue-0.1.12/docs/Data-Dequeue.html) but I have not figured out how to define `q0`.
Do you have any ideas?```shell
/Users/williamrusnack/Documents/haskell_practice/try-dequeue/src/Main.hs:9:11: error:
• Ambiguous type variable ‘q0’ arising from a use of ‘empty’
prevents the constraint ‘(Dequeue q0)’ from being solved.
Relevant bindings include a :: q0 a (bound at src/Main.hs:9:7)
Probable fix: use a type annotation to specify what ‘q0’ should be.
These potential instance exist:
instance [safe] Dequeue BankersDequeue -- Defined in ‘Data.Dequeue’
• In the expression: empty
In an equation for ‘a’: a = empty
In the expression:
do let a = empty
let a' = pushFront a 'a'
let b = first a'
print b
|
9 | let a = D.empty
| ^^^^^^^
```