phoityne / haskell-debug-adapter

Debug Adapter for Haskell debugging system.
https://hackage.haskell.org/package/haskell-debug-adapter
BSD 3-Clause "New" or "Revised" License
54 stars 8 forks source link

fix: missing StateActivityIF for ContaminatedStateData #28

Closed forestaa closed 2 years ago

forestaa commented 2 years ago

https://github.com/phoityne/haskell-debug-adapter/pull/27 introduces the following warning.

Building library for haskell-debug-adapter-0.0.38.0..
[17 of 31] Compiling Haskell.Debug.Adapter.State.Contaminated ( src/Haskell/Debug/Adapter/State/Contaminated.hs, /work/haskell/haskell-debug-adapter/dist-newstyle/build/x86_64-linux/ghc-9.4.2/haskell-debug-adapter-0.0.38.0/build/Haskell/Debug/Adapter/State/Contaminated.o, /work/haskell/haskell-debug-adapter/dist-newstyle/build/x86_64-linux/ghc-9.4.2/haskell-debug-adapter-0.0.38.0/build/Haskell/Debug/Adapter/State/Contaminated.dyn_o )

src/Haskell/Debug/Adapter/State/Contaminated.hs:35:3: warning: [-Wincomplete-patterns]
    Pattern match(es) are non-exhaustive
    In an equation for ‘doActivity’:
        Patterns of type ‘AppState ContaminatedStateData’,
                         ‘WrapRequest’ not matched:
            _ (WrapRequest (SourceRequest _))
   |
35 |   doActivity s (WrapRequest r@InitializeRequest{})              = action s r

I added the implemention of StateActivityIF for ContaminatedStateData.