Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8089781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:30:47+00:00 2026-06-05T19:30:47+00:00

Soon enough I will be forced to present a project in Haskell that is

  • 0

Soon enough I will be forced to present a project in Haskell that is supposed to make a Java syntax highlighting. I did some research and I found out that Happy could be a solution( since is a yacc-like parser). Also there were mentioned Bison and Parsec.
Since I am new in Haskell, I really don’t have any ideas how to start this project.
Any tips would help a lot.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T19:30:49+00:00Added an answer on June 5, 2026 at 7:30 pm

    Since I am new in Haskell, I really don’t have any ideas how to start this project

    Ah, therein lies the true question. To start learning Haskell, I often recommend Learn You a Haskell, which is free to read online. Other good resources that I recommend include Real World Haskell (slightly dated but still good) and the Typeclassopedia.

    To deal with the package suggestions, you’ll first want to install the Haskell Platform, and then you can install a given package with the command:

    cabal install PACKAGE
    

    Beware, though, Haskell is moving at a very fast pace so some packages are incompatible with each other. Cabal should prevent you from doing anything too stupid, but if you end up with messed up dependencies between packages, ask for help on the #haskell irc channel. You can see documentation for a given module by clicking its name on the package overview page. If a package isn’t on http://hackage.haskell.org, then contact the owner or ask for help on irc, and they’ll help you generate documentation and install it.

    I have no idea how syntax highlighting algorithms work, so I’ll leave that part for you to research on your own. If you are allowed to reuse existing work, then you’ll probably use the language-java package (as suggested by Louis) to parse the raw text into Java’s Abstract Syntax Tree, and then it’ll be up to you to transform that syntax tree into whatever colorized format you are required to produce.

    You should consult whoever is requiring this task of you before you invest serious amounts of time in any one approach, to make sure it is acceptable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Soon enough we will have nVidia GTX 300 that would be able to execute
We will be soon hosting a large number of audio and video files that
Now that Nokia will soon ship my pre-ordered n900, I thought I would familiarize
The manual said that The destructor method will be called as soon as all
I'm soon going to be starting some iPhone Development (3.0) building a simple app
We'll soon have some high school kids here in our company for some training
Since MS will stop supporting anything before IE 8 soon, I am not sure
Can anyone explain why the code below, when run, will occasionally result in some
The desktop application is being developed with a demo version that is supposed to
I will soon be working on an application which needs to get the currently

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.