Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

do not force cabal-dev

  • Loading branch information...
commit 7333a415d7930d368b0ea548c200ef989c4c1de0 1 parent a6b5bf0
@JPMoresmau authored
View
7 net.sf.eclipsefp.haskell.ui/src/net/sf/eclipsefp/haskell/ui/internal/scion/ScionManager.java
@@ -762,8 +762,11 @@ private synchronized void startInstance( final IProject project ) {
public static CabalImplDetails getCabalImplDetails(){
CabalImplDetails details=new CabalImplDetails();
String cabal=CabalImplementationManager.getCabalExecutable();
- String cabalDev=ScionManager.getExecutablePath( IPreferenceConstants.CABALDEV_EXECUTABLE, "cabal-dev", false );
- if (cabalDev!=null && cabalDev.length()>0){
+ IPreferenceStore preferenceStore = HaskellUIPlugin.getDefault().getPreferenceStore();
+ String cabalDev = preferenceStore.getString( IPreferenceConstants.CABALDEV_EXECUTABLE );
+
+ //String cabalDev=ScionManager.getExecutablePath( IPreferenceConstants.CABALDEV_EXECUTABLE, "cabal-dev", false );
+ if (cabalDev!=null && cabalDev.length()>0 && new File(cabalDev).exists()){
details.setExecutable( cabalDev);
details.getOptions().add("--sandbox="+BWFacade.DIST_FOLDER_CABALDEV);
details.getOptions().add("--with-cabal-install="+cabal);
View
2  todo.txt
@@ -12,6 +12,8 @@
- show packages in error in Cabal Packages view (error overlay on icon) + errors + enable install button
- list of packages in error
+- fix all hlint suggestions on project?
+
- code navigation like chris done? http://dl.dropbox.com/u/62227452/Screenshots/code-navigationz-moving.ogv
keep locations from ast?
Does Eclipse provide easy way to do that in the editor?
Please sign in to comment.
Something went wrong with that request. Please try again.