haskell - Same data structure is imported twice and cannot access underlying data -


I'm trying to get the line number out of SourcePos sourceline < / Code> I therefore have the text Parsecos (SourcePos, Source Line) imported. However, another module ( Language.ECMAScript3.Syntax ) creates SourcePos , export as its own type but it sourceLine export does not do.

This does not help me get this error: src \ Main.hs: 62: 53:

  `language. ECMAScript 3. Syntax 'with' text SourcePos' expected type: JavaScript Language.ECMAScript3.Syntax.SourcePos - & gt; [Four] Actual type: Javascript text. Parssec.Pos.SourcePos - & gt; [Four] ....  
  
  list (one: rest) = one case (VarDeclStmt _ [VarDecl _ (id ln a) _]) - & gt; "\ Nvar" ++ (Show (Sourcelen (LN)) ++ (Show A) ++ List Otherwise - & gt; List rest   

big references:

  lookAtJs module source label func = case parseFromString SR count count -> "A test-case can not be parsed:" ++ "\ nError" ++ (shows error) OK JS-> Label ++ (Joy JS) list0 Tree = Case Tree (Script A) - & gt; List b - list :: [language. ECMAScript3.Syntax.Statement a] - & gt; String list (one: rest) = one of the cases (VarDeclStmt _ [VarDecl _ (ID (LN) _)) - & gt; "\ Nvar" ++ (Show ((LN)) ++ (Show A) ++ List Otherwise Left - & gt; List vistent list [] = "" list specific module src = lookAtJs module source "list:" list0 listVars _ = content & lt; - GetContents   

putStrLn (list-specific module content) 0

Note that this is the "thing", is there any way, e.g. Can you try to use the correct import to fix this problem? For example:

For example:

  Import the appropriate text. Define PRP as the correct language in the form of PRCP.   

As the ACMAScript 3. secs you then function or type / value constructor from these modules in this way:

  - Work from the text. Purse Grinding pp. Function - Language. Work from ECMAScript 3. Syntex ES Function    

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -