andrevdm / bhoogle Goto Github PK
View Code? Open in Web Editor NEWHoogle terminal UI brick example app
Home Page: http://www.andrevdm.com/posts/2018-01-15-bhoogle.html
License: Other
Hoogle terminal UI brick example app
Home Page: http://www.andrevdm.com/posts/2018-01-15-bhoogle.html
License: Other
Awesome project!
If you have a Hackage release I'll happily link to it from the Hoogle README (telling someone to go install it out of git makes it a bit too niche).
(I love bhoogle!)
While the UI is very fast (i.e. once data is listed, browsing it is just instantaneous), typing text in Type
produces lags of a couple of seconds.
In the following screencast, I'm typing Data.List
without pauses: notice please the delay with which List
is displayed.
https://user-images.githubusercontent.com/150719/222354749-288ca993-9782-4db1-89a8-240a6a962ee8.mp4
I noticed that also hitting tab for moving from Type
to Text
renders after 1'.
I installed bhoogle via cabal install bhoogle
with the following setup
ghcup list --show-criteria=installed
Tool Version Tags Notes
✔✔ ghc 9.2.5 recommended,base-4.16.4.0 hls-powered
✓ ghc 9.4.3 base-4.17.0.0
✓ ghc 9.4.4 latest,base-4.17.0.0 hls-powered
✓ cabal 3.6.2.0 recommended
✔✔ cabal 3.8.1.0 latest
✔✔ hls 1.9.1.0 latest
✔✔ ghcup 0.1.19.2 latest,recommended
bhoogle: The Hoogle file /home/chris/.hoogle/default-haskell-5.0.8.hoo is the wrong version or format.
Expected: HOOGLE-5.0.14
Got : HOOGLE-5.0.8
CallStack (from HasCallStack):
error, called at src/General/Store.hs:177:13 in hoogle-5.0.14-8kooiTFvhk43uhMfOwSHUR:General.Store
CallStack (from HasCallStack):
error, called at src/General/Util.hs:235:66 in hoogle-5.0.14-8kooiTFvhk43uhMfOwSHUR:General.Util
I've cloned down the repo, ran stack install
and then ran bhoogle
, and typed in `maybe'.
Hello,
I was trying to give a try to the app but whenever I hit tab or enter "->" the app crashes. I'm assuming that's when it tries to query for results.
I have hoogle installed and can interact with it from the ghci. The error I'm getting is the following:
Running in ArchLinux using the latest release binary from GitHub.
Thanks in advance
The screenshot suggests that the documentation string gets truncated when displayed by
Line 257 in 16481c7
You might consider Brick.Core.txtWrap
to display it instead, which will automatically wrap it.
Building executable 'bhoogle' for bhoogle-0.1.4.2..
[1 of 1] Compiling Main
/home/curators/work/unpack-dir/unpacked/bhoogle-0.1.4.2-fa8035b6300def8f7d949f77edb1749b14cdcecee47293e5485053e02c6f06e1/app/Main.hs:130:20: error: [GHC-76037]
Not in scope: ‘V.mkVty’
NB: the module ‘Graphics.Vty’ does not export ‘mkVty’.
Suggested fix:
Perhaps use data constructor ‘V.Vty’ (imported from Graphics.Vty)
|
130 | let vtyBuilder = V.mkVty V.defaultConfig
| ^^^^^^^
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.