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 8274335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:42:16+00:00 2026-06-08T07:42:16+00:00

As an absolute beginner in haskell, I am continuously reading various articles, pdfs ,

  • 0

As an absolute beginner in haskell, I am continuously reading various articles, pdfs , tutorials on haskell. Most of the examples / sample codes include Math Characters. Even for a common task of typing

->

I have to type: – & >

The fact is I don’t know how to type Math Characters in emacs (I am using for practising haskell coding). My current Keyboard Layout is ‘English US’.

Is there any specific keyboard or keyboard layout which is most suitable for entering the math symbols (for haskell programming)?

Does haskell has all Math Symbols as functions? My current assumption is that haskell must be supporting all Math Symbols as functions.

e.g. +, – ,/, * etc.

Unicode Math Symbols
Note: These notations are seen in many haskell papers.

  • 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-08T07:42:18+00:00Added an answer on June 8, 2026 at 7:42 am

    You do not have to use the fancy unicode symbols you see in papers–in place of → you can write -> and so on for each special character. Given this, a normal US Qwerty layout is perfectly find for Haskell.

    However, if you find the → style easier to read (but obviously not easier to type), you can have Emacs display code with those symbols instead. This is entirely cosmetic, like syntax highlighting: even though you see a →, the source code still has a -> and that’s still what you type. You can enable this as so:

    (setq haskell-font-lock-symbols t)
    

    This symbol mode might make some of your indentation look a little odd. However, I’ve been using it for a while and have had no problems at all. I certainly like looking at my code more when it uses pretty symbols in place of ASCII surrogates.

    So you still type -> but it just looks prettier.

    However, sometimes you do want fancy symbols like Greek letters. For example, if you’re implementing an algorithm from a paper, it might make sense to keep the variable names the same. For this, you can use Emacs’s TeX input mode via C-\ and entering TeX. This will, for example, allow you to type \lambda and get a λ. To see the full list of symbols you can type, run M-x describe-input-method and then enter TeX.

    Finally: Haskell does support all the “math symbols” like + and – as operators. In fact, any identifier made up of these characters is automatically infix. So you can actually define your own operators. You could write something like:

    a +++ b = a * a + b * b
    

    and then you would be able to use the +++ function in an infix position, like any other operator. I believe that Haskell determines which characters are “operator characters” by looking at its Unicode category, meaning you can define (and I actually have defined) operators like ×.

    In summary: you do not need any special symbols for Haskell code–it can all be ASCII. You can make Emacs render ASCII Haskell code with those symbols if you find them easy to read, and you can actually type them using the TeX input mode.

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

Sidebar

Related Questions

i am absolute beginner to Struts2. I am tying to follow tutorials on struts
I am an absolute beginner to haskell but I want to dive into the
first - I'm absolute beginner with web back-end stuff! I'm looking for the most
Absolute beginner question: I have a template file index.html that looks like this: ...
I'm almost an absolute beginner in Python, but I am asked to manage some
Hello i am an absolute beginner on cloud computing and on python. I would
I am an absolute beginner when it comes to ActionScript and Flash. I am
I'm absolute beginner when it comes to mono for android . I've used following
I'm absolute beginner when it comes to mono for android . Referring to below
I'm absolute beginner to mono for android . Following buttons are created dynamically and

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.