Small bugfix

Help
2006-06-18
2012-12-06
  • Bug description: ghc fail to regognise option if more than one option are entered in "Extra compiler options" fiels (separated by space).

    Solution: change addExtraOptions function of CompilerParams class in package de.leiffrenzel.fp.haskell.ghccompiler:
    ----------------------------------
      private void addExtraOptions( final List list ) {
        if( preferences.getBoolean( USE_EXTRA_OPTIONS ) ) {
          String extras = preferences.getString( EXTRA_OPTIONS );
          if( extras !=  null) {
              String[] opts = extras.split(" ");
              for(int i = 0; i < opts.length; i++) {
              if( opts[i] != null && !opts[i].trim().equals( "" ) ) {
                list.add( opts[i] );
              }
              }
          }
        }
      }
    ----------------------------------

    Sorry, I'm not so good in Eclipse plugins (and in Java programming at all)), so this code must be additionally checked for errors.