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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:01:02+00:00 2026-06-13T19:01:02+00:00

I just installed WinGHCi. When I try to load an .hs file with Ctrl+L,

  • 0

I just installed WinGHCi. When I try to load an .hs file with Ctrl+L, it opens the file browser in C:\Program Files (x86)\Haskell Platform\2012.2.0.0\winghci which is where I installed this. I don’t want it to go there by default, I keep my code files in a different directory on a different drive and I don’t want to have to navigate to D:\MyPath\Haskell every time I load a file.

I tried to set the “Start in” field of the shortcut I use to launch WinGHCi but it changed nothing.

How can I make WinGHCi look in my own directory by default?

  • 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-13T19:01:03+00:00Added an answer on June 13, 2026 at 7:01 pm

    It opens in the last directory you opened a .hs or .lhs from.

    Try opening something from the folder you want, exit, restart.
    Did it restart where you were?

    Try working like that for a while, and if you like it (I do) then you’re fine.


    If you really do want to go to the same place every time, perhaps there’s a way.

    I can’t find any setting to control this, but the information is stored in the registy.
    Mine is at

    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\Software\Haskell\WinGHCi 1.0.6]
    "WorkingDir"="D:\\Files\\Andrew\\prog\\haskell"
    

    You can save your version of that as resetghci.reg:
    To make your own, open regedit and first try the same location. If not, search for WinGHCi.
    You can export that subtree but you get the whole lot including recent expressions etc, which I don’t think you should reset. Save that as ghcioriginal.reg just in case. Edit away all the lines except WorkingDir and save as resetghci.reg

    When you double-click it it will ask you if you’re sure you want to add that info to the registry. Yes you are.


    Untested:

    What follows works on older versions, but Microsoft seem to be going off .pif files and the start command, and I’m not able to test this in Windows 7.

    Make a text file called ghci.bat in the same folder as the .reg you made. In it put

    @echo off
    regedit resetghci.reg
    start WinGHCi
    

    You might need to specify the full path to WinGHCi.
    The start command is the windows equivalent of making a background process from a shell prompt, so this should terminate immediately.

    Make a shortcut to ghci.bat (it will be called ghci.pif) and set it to open minimised and put a nice lambda icon on it (nick it from the winghci executable).

    Pop that on your desktop, start menu or shortcut bar, and when you use it, you’ll be popped back to your standard location.

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

Sidebar

Related Questions

Just installed the current Haskell Platform 2012.2.0.0 , which says it uses base-4.5.0.0 ,
Just installed Python 2.7.3 on a Windows7 machine. How do I get .py files
I just installed visual studio 2012 and tried running my C++ project on it.
Just installed it. Where is the settings file to edit snippets and abbreviations in
Just installed MonoDevelop for Android 2.8.6.5 on Windows XP. When I try to run
Just installed VS 2012(Ultimate) and created a MVC4 application. When I looked into web.config,
Just installed Typescript extension to VS2012 and followed Install TypeScript for Visual Studio 2012
Just installed a nginx server with ubuntu 11.04 and after loading my php program
Just installed the latest SDK for iPhone 2.1. When I go to File ->
Just installed a clean version of mongodb on Fedora 17 64-bit, but the Mongo

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.