How To Install happy on Fedora 34
Introduction
In this tutorial we learn how to install happy
on Fedora 34.
What is happy
Happy is a parser generator for Haskell. Given a grammar specification in BNF, Happy generates Haskell code to parse the grammar. Happy works in a similar way to the ‘yacc’ tool for C.
We can use yum
or dnf
to install happy
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install happy.
Install happy on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install happy
using dnf
by running the following command:
sudo dnf -y install happy
Install happy on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install happy
using yum
by running the following command:
sudo yum -y install happy
How To Uninstall happy on Fedora 34
To uninstall only the happy
package we can use the following command:
sudo dnf remove happy
happy Package Contents on Fedora 34
/usr/bin/happy
/usr/lib/.build-id
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/2fd363bd064775ad190540d83c201862593b0f
/usr/share/doc/happy
/usr/share/doc/happy/ANNOUNCE
/usr/share/doc/happy/CHANGES
/usr/share/doc/happy/README.md
/usr/share/doc/happy/TODO
/usr/share/doc/happy/examples
/usr/share/doc/happy/examples/Calc.ly
/usr/share/doc/happy/examples/DavesExample.ly
/usr/share/doc/happy/examples/ErlParser.ly
/usr/share/doc/happy/examples/ErrorTest.ly
/usr/share/doc/happy/examples/LexerTest.ly
/usr/share/doc/happy/examples/MonadTest.ly
/usr/share/doc/happy/examples/PgnParser.ly
/usr/share/doc/happy/examples/README
/usr/share/doc/happy/examples/SimonsExample.ly
/usr/share/doc/happy/examples/glr
/usr/share/doc/happy/examples/glr/Makefile
/usr/share/doc/happy/examples/glr/Makefile.defs
/usr/share/doc/happy/examples/glr/bio-eg
/usr/share/doc/happy/examples/glr/bio-eg/1-1200.dna
/usr/share/doc/happy/examples/glr/bio-eg/1-600.dna
/usr/share/doc/happy/examples/glr/bio-eg/Bio.y
/usr/share/doc/happy/examples/glr/bio-eg/Main.lhs
/usr/share/doc/happy/examples/glr/bio-eg/Makefile
/usr/share/doc/happy/examples/glr/bio-eg/README
/usr/share/doc/happy/examples/glr/common
/usr/share/doc/happy/examples/glr/common/DV_lhs
/usr/share/doc/happy/examples/glr/common/DaVinciTypes.hs
/usr/share/doc/happy/examples/glr/expr-eval
/usr/share/doc/happy/examples/glr/expr-eval/Expr.y
/usr/share/doc/happy/examples/glr/expr-eval/Hugs.lhs
/usr/share/doc/happy/examples/glr/expr-eval/Main.lhs
/usr/share/doc/happy/examples/glr/expr-eval/Makefile
/usr/share/doc/happy/examples/glr/expr-eval/README
/usr/share/doc/happy/examples/glr/expr-monad
/usr/share/doc/happy/examples/glr/expr-monad/Expr.y
/usr/share/doc/happy/examples/glr/expr-monad/Hugs.lhs
/usr/share/doc/happy/examples/glr/expr-monad/Main.lhs
/usr/share/doc/happy/examples/glr/expr-monad/Makefile
/usr/share/doc/happy/examples/glr/expr-monad/README
/usr/share/doc/happy/examples/glr/expr-tree
/usr/share/doc/happy/examples/glr/expr-tree/Expr.y
/usr/share/doc/happy/examples/glr/expr-tree/Hugs.lhs
/usr/share/doc/happy/examples/glr/expr-tree/Main.lhs
/usr/share/doc/happy/examples/glr/expr-tree/Makefile
/usr/share/doc/happy/examples/glr/expr-tree/README
/usr/share/doc/happy/examples/glr/expr-tree/Tree.lhs
/usr/share/doc/happy/examples/glr/hidden-leftrec
/usr/share/doc/happy/examples/glr/hidden-leftrec/Expr.y
/usr/share/doc/happy/examples/glr/hidden-leftrec/Hugs.lhs
/usr/share/doc/happy/examples/glr/hidden-leftrec/Main.lhs
/usr/share/doc/happy/examples/glr/hidden-leftrec/Makefile
/usr/share/doc/happy/examples/glr/hidden-leftrec/README
/usr/share/doc/happy/examples/glr/highly-ambiguous
/usr/share/doc/happy/examples/glr/highly-ambiguous/Expr.y
/usr/share/doc/happy/examples/glr/highly-ambiguous/Hugs.lhs
/usr/share/doc/happy/examples/glr/highly-ambiguous/Main.lhs
/usr/share/doc/happy/examples/glr/highly-ambiguous/Makefile
/usr/share/doc/happy/examples/glr/highly-ambiguous/README
/usr/share/doc/happy/examples/glr/nlp
/usr/share/doc/happy/examples/glr/nlp/English.y
/usr/share/doc/happy/examples/glr/nlp/Hugs.lhs
/usr/share/doc/happy/examples/glr/nlp/Main.lhs
/usr/share/doc/happy/examples/glr/nlp/Makefile
/usr/share/doc/happy/examples/glr/nlp/README
/usr/share/doc/happy/examples/glr/packing
/usr/share/doc/happy/examples/glr/packing/Expr.y
/usr/share/doc/happy/examples/glr/packing/Hugs.lhs
/usr/share/doc/happy/examples/glr/packing/Main.lhs
/usr/share/doc/happy/examples/glr/packing/Makefile
/usr/share/doc/happy/examples/glr/packing/README
/usr/share/doc/happy/examples/igloo
/usr/share/doc/happy/examples/igloo/Foo.hs
/usr/share/doc/happy/examples/igloo/Lexer.x
/usr/share/doc/happy/examples/igloo/Makefile
/usr/share/doc/happy/examples/igloo/Parser.y
/usr/share/doc/happy/examples/igloo/ParserM.hs
/usr/share/doc/happy/examples/igloo/README
/usr/share/doc/happy/happy
/usr/share/doc/happy/happy/fptools.css
/usr/share/doc/happy/happy/happy-introduction.html
/usr/share/doc/happy/happy/index.html
/usr/share/doc/happy/happy/ix01.html
/usr/share/doc/happy/happy/sec-AtrributeGrammarsInHappy.html
/usr/share/doc/happy/happy/sec-AttrGrammarLimits.html
/usr/share/doc/happy/happy/sec-AttributeGrammar.html
/usr/share/doc/happy/happy/sec-AttributeGrammarExample.html
/usr/share/doc/happy/happy/sec-Precedences.html
/usr/share/doc/happy/happy/sec-compilation-time.html
/usr/share/doc/happy/happy/sec-conflict-tips.html
/usr/share/doc/happy/happy/sec-directives.html
/usr/share/doc/happy/happy/sec-error.html
/usr/share/doc/happy/happy/sec-finding-errors.html
/usr/share/doc/happy/happy/sec-glr-misc.html
/usr/share/doc/happy/happy/sec-glr-semantics.html
/usr/share/doc/happy/happy/sec-glr-using.html
/usr/share/doc/happy/happy/sec-glr.html
/usr/share/doc/happy/happy/sec-grammar-files.html
/usr/share/doc/happy/happy/sec-grammar.html
/usr/share/doc/happy/happy/sec-happy-ghci.html
/usr/share/doc/happy/happy/sec-info-files-conflicts.html
/usr/share/doc/happy/happy/sec-info-files.html
/usr/share/doc/happy/happy/sec-invoking.html
/usr/share/doc/happy/happy/sec-license.html
/usr/share/doc/happy/happy/sec-module-header.html
/usr/share/doc/happy/happy/sec-module-trailer.html
/usr/share/doc/happy/happy/sec-monad-alex.html
/usr/share/doc/happy/happy/sec-monads.html
/usr/share/doc/happy/happy/sec-multiple-parsers.html
/usr/share/doc/happy/happy/sec-obtaining.html
/usr/share/doc/happy/happy/sec-reporting-bugs.html
/usr/share/doc/happy/happy/sec-sequences.html
/usr/share/doc/happy/happy/sec-tips.html
/usr/share/doc/happy/happy/sec-type-signatures.html
/usr/share/doc/happy/happy/sec-using.html
/usr/share/happy-1.19.12
/usr/share/happy-1.19.12/GLR_Base
/usr/share/happy-1.19.12/GLR_Lib
/usr/share/happy-1.19.12/GLR_Lib-ghc
/usr/share/happy-1.19.12/GLR_Lib-ghc-debug
/usr/share/happy-1.19.12/HappyTemplate
/usr/share/happy-1.19.12/HappyTemplate-arrays
/usr/share/happy-1.19.12/HappyTemplate-arrays-coerce
/usr/share/happy-1.19.12/HappyTemplate-arrays-coerce-debug
/usr/share/happy-1.19.12/HappyTemplate-arrays-debug
/usr/share/happy-1.19.12/HappyTemplate-arrays-ghc
/usr/share/happy-1.19.12/HappyTemplate-arrays-ghc-debug
/usr/share/happy-1.19.12/HappyTemplate-coerce
/usr/share/happy-1.19.12/HappyTemplate-ghc
/usr/share/licenses/happy
/usr/share/licenses/happy/LICENSE
References
Summary
In this tutorial we learn how to install happy
on Fedora 34 using yum and dnf.