Skip to content
  • Simon Marlow's avatar
    [project @ 2002-01-31 13:42:20 by simonmar] · 95ac9a43
    Simon Marlow authored
    Fix a classic bug: copying a Haskell string with one of the C string
    functions (in this case strncpy()) is wrong when the string contains
    '\0' characters.
    
    The symptom in this case is that Happy parsers created with -ag don't
    work in GHCi, because the state tables are encoded as strings
    containing lots of '\0' elements.
    95ac9a43