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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:44:03+00:00 2026-05-18T03:44:03+00:00

Please help me set up proper indentation in Emacs haskell-mode When I’m trying to

  • 0

Please help me set up proper indentation in Emacs haskell-mode

When I’m trying to type down something like ADT or a record, I’m getting on the wrong column after pressing <ENTER>, and pressing <TAB> won’t switch to the right one until I enter either | or ‘;’!

data MyADT = Oh
           | Hi
           | Hello
             | <- the cursor is here again!

Trying to solve the problem I set

(define-key global-map (kbd "RET") 'reindent-then-newline-and-indent)

in my .emacs file, but it won’t indent the current line on pressing <enter> too!

Another strange behaviour: indentation of case

oneChar c =  case lookup c simpleEscapes of
  | <- what? here?!
  • 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-05-18T03:44:04+00:00Added an answer on May 18, 2026 at 3:44 am

    I commented the line

    ;;(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
    

    And now I’m getting a good “tab” behavior: at least, it allows me to choose a column and does not tie down me to the one it likes. But no auto-indent at all annoys me a little bit, so I’m hoping it is a temporary solution

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

Sidebar

Related Questions

Please help me fix this issue. I would like to set the width of
Please help, I am trying to set up a rails app on Ubuntu 12.04,
please help: I have a data set need to be stored like tree, following
Please help me, how to set a background image for screen and How to
Can anyone help me out please? I'm confused. I want to set up my
please help me arrange these 3 buttons horizontally like this photoshopped image: Please take
Please help me, I'm trying to find some documentation about pre-installed applications at Android.
http://jsfiddle.net/VjMy8/ Please help me to set the #container to keep in the center of
Please help me set the required database! Thank you! <?php require_once(adodb5/adodb.inc.php); $web = NewAdoConnection(mysqlt);
can you please help me on how to set up the html and css

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.