!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../haskell/haskell")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../haskell/haskell"],e):e(CodeMirror)}(function(o){"use strict";o.defineMode("haskell-literate",function(e,t){var n=o.getMode(e,t&&t.base||"haskell");return{startState:function(){return{inCode:!1,baseState:o.startState(n)}},token:function(e,t){return e.sol()&&(t.inCode=e.eat(">"))?"meta":t.inCode?n.token(e,t.baseState):(e.skipToEnd(),"comment")},innerMode:function(e){return e.inCode?{state:e.baseState,mode:n}:null}}},"haskell"),o.defineMIME("text/x-literate-haskell","haskell-literate")});