... | ... | @@ -25,7 +25,7 @@ Here are some examples: |
|
|
|
|
|
- The context of a type is parsed as a type, and then converted into a context by `RdrHsSyn.checkContext`. For example, when parsing
|
|
|
|
|
|
```wiki
|
|
|
```haskell
|
|
|
f :: (Read a, Num a) => a -> a
|
|
|
```
|
|
|
|
... | ... | @@ -114,4 +114,4 @@ It is also possible to get a function that takes a list of active extensions: |
|
|
|
|
|
```Haskell
|
|
|
lex exts str = case Lexer.lexTokenStream (StringBuffer.stringToStringBuffer str) (SrcLoc.mkRealSrcLoc (FastString.fsLit "") 0 0) (Data.List.foldl' DynFlags.xopt_set DynFlags.unsafeGlobalDynFlags exts) of Lexer.POk _ a -> Prelude.map (\l -> case l of (SrcLoc.L _ e) -> e) a
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
``` |