Skip to content
Snippets Groups Projects
  1. Jul 06, 1999
  2. Jul 05, 1999
    • sof's avatar
      [project @ 1999-07-05 19:26:42 by sof] · 60e60f66
      sof authored
      Temporary workaround for problem which caused the following program
      
        main = putStrLn ("aa" ++ IOExts.trace "bb" "cc")
      
      to deadlock - when the (untouched) stderr is evaluated (which
      IOExts.trace forces), it will touch stdout (see code for details of
      why), but it has already been locked by putStrLn. Boom - game over.
      
      This temporary 'fix' is, to put it kindly, in the fancy-footwork
      category as it doesn't solve the problem, but merely turns it on its
      head. Instead of stderr depending on stdout, stdout now depends on
      stderr, so the following program will deadlock
      
        main = hPutStrLn stderr ("aa" ++ myTrace "bb" "cc")
      
        myTrace msg v = unsafePerformIO $ do
           putStrLn msg
           return v
      
      The 'theory' is that this is far less likely to occur in practice than
      the other way around.
      
      The next step / real solution would be to give up the lock on an
      output Handle while filling up its output buffer. However, that
      requires ripping out / re-org'ing a fair bit of buffer management
      code, which I'll delay doing.
      60e60f66
    • sof's avatar
      [project @ 1999-07-05 18:53:53 by sof] · 2455da3a
      sof authored
      Remove -#include "RtsAPI.h" - you now get it for free.
      2455da3a
    • sof's avatar
      [project @ 1999-07-05 17:25:23 by sof] · 45adecbe
      sof authored
      Stg.h contains all the defs and protos that are visible when compiling
      .hc code (==> .hs code). Augment this set with the externally visible
      RTS API.
      45adecbe
    • sof's avatar
      [project @ 1999-07-05 17:06:21 by sof] · 276f03b2
      sof authored
      Tidied up the handling of the code that emits the precedence level
      predicates that gets used in applications of showParen and readParen.
      276f03b2
    • sof's avatar
      [project @ 1999-07-05 17:02:42 by sof] · ee731a02
      sof authored
      Two new Dark Corner regression tests:
      
      - testing the derived Show&Read instances for constructors with
        a field label that is a varsym rather than a varid.
      - check that the default fixity & assoc of an operator is 'infixl 9'.
      ee731a02
    • sof's avatar
      [project @ 1999-07-05 16:55:19 by sof] · df7cb092
      sof authored
      New option, -fail, to indicate failure (whatever the return code).
      df7cb092
    • Simon Peyton Jones's avatar
      [project @ 1999-07-05 15:30:25 by simonpj] · 8ae0e52a
      Simon Peyton Jones authored
      Make sure that instance gates have their home modules
      loaded by RnIfaces.getImportedInstDecls.  This was causing
      Kevin Atkinson's missing-instance bug.
      8ae0e52a
    • sof's avatar
      [project @ 1999-07-05 14:47:06 by sof] · 8be66682
      sof authored
      * If a field label is a 'varsym', wrap parens around it when
        Show'ing and Read'ing it back in.
      
      * If there's no fixity decl for a 'consym', the default is
        for it to be left-assoc.
      8be66682
  3. Jul 03, 1999
  4. Jul 02, 1999
  5. Jul 01, 1999
  6. Jun 30, 1999
  7. Jun 29, 1999
  8. Jun 28, 1999
Loading