Changes between Initial Version and Version 1 of Ticket #3675


Ignore:
Timestamp:
Nov 20, 2009 10:11:57 PM (6 years ago)
Author:
igloo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3675 – Description

    initial v1  
    1 I am loading a target with actual contents (targetContents=Just (contents, time)). The contents are literate Haskell. I get compilation errors instead of the "preprocessing needed, interactive check disabled" error I should get. It works if I manually set the Phase to Unlit HsSrcFile, but the doc says it should guess it's literate from the file extension. I'm using 6.10.4 in Windows.[[BR]] 
     1I am loading a target with actual contents (targetContents=Just (contents, time)). The contents are literate Haskell. I get compilation errors instead of the "preprocessing needed, interactive check disabled" error I should get. It works if I manually set the Phase to Unlit `HsSrcFile`, but the doc says it should guess it's literate from the file extension. I'm using 6.10.4 in Windows. 
    22 
    3 GHC.hs line 2240: [[BR]] 
     3`GHC.hs` line 2240: 
     4{{{ 
    45Nothing <- mb_phase, Unlit _ <- startPhase src_fn  = True[[BR]] 
    5  
     6}}} 
    67(src_fn is the file name, endings in .lhs in my case)[[BR]] 
    78 
    8  
    9 DriverPhase.hs line 146:[[BR]] 
     9`DriverPhase.hs` line 146: 
     10{{{ 
    1011startPhase "lhs"      = Unlit HsSrcFile[[BR]] 
    11  
     12}}} 
    1213 
    1314Somewhere in there we forgot to move from "/drive/dir/foo.lhs" to "lhs". We need something like tail $ takeExtension $ src_fn, and handling gracefully the case where there is no extension.[[BR]]